From 992f2396f294f991ce0d139b9819ea39c9050fa6 Mon Sep 17 00:00:00 2001 From: JF Bastien Date: Fri, 28 Aug 2015 10:05:29 -0700 Subject: Text format: not unique, but precise Addresses the conclusion reached in #292. --- TextFormat.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/TextFormat.md b/TextFormat.md index 4bb9b3a..90f1fc4 100644 --- a/TextFormat.md +++ b/TextFormat.md @@ -23,3 +23,13 @@ assembly languages have). There is no requirement to use JavaScript syntax; this format is not intended to be evaluated or translated directly into JavaScript. + +The text format isn't uniquely representable. Multiple textual files can assemble +to the same binary file, for example whitespace isn't relevant and memory initialization +can be broken out into smaller pieces in the text format. + +The text format is precise in that values that cannot be accurately represented in the +binary format are considered invalid text. Floating-point numbers are therefore +represented as hexadecimal floating-point as specified by C99. The textual format may +be improved to also support more human-readable representations, but never at the cost +of accurate representation. -- cgit v1.2.3 From 77d3112d02576d58cb48c865b8498a03fabe5342 Mon Sep 17 00:00:00 2001 From: JF Bastien Date: Fri, 28 Aug 2015 12:52:13 -0700 Subject: Update TextFormat.md --- TextFormat.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TextFormat.md b/TextFormat.md index 90f1fc4..6619f6f 100644 --- a/TextFormat.md +++ b/TextFormat.md @@ -30,6 +30,6 @@ can be broken out into smaller pieces in the text format. The text format is precise in that values that cannot be accurately represented in the binary format are considered invalid text. Floating-point numbers are therefore -represented as hexadecimal floating-point as specified by C99. The textual format may -be improved to also support more human-readable representations, but never at the cost -of accurate representation. +represented as hexadecimal floating-point as specified by the C99 standard, which +IEEE-754-2008 section 5.12.3 also specifies. The textual format may be improved to also +support more human-readable representations, but never at the cost of accurate representation. -- cgit v1.2.3