summaryrefslogtreecommitdiff
path: root/chapter14/README.md
diff options
context:
space:
mode:
authorCliff Click <cliffc@acm.org>2024-09-07 09:22:29 -0700
committerThalia Archibald <thalia@archibald.dev>2024-09-07 10:54:48 -0700
commiteccda096c2e8e30f76e4c4a21421243159cd9026 (patch)
treed94f7ba3f46cd2c877e000d260406d084d27fb6f /chapter14/README.md
parent22a129078b27d5244fac5bddd44a1b50cbb79839 (diff)
downloadSimple-eccda096c2e8e30f76e4c4a21421243159cd9026.tar.gz
Simple-eccda096c2e8e30f76e4c4a21421243159cd9026.zip
README includes more design decisions for type names.
Add Or,Xor for completeness.
Diffstat (limited to 'chapter14/README.md')
-rw-r--r--chapter14/README.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/chapter14/README.md b/chapter14/README.md
index a42c37e2..2ca7d977 100644
--- a/chapter14/README.md
+++ b/chapter14/README.md
@@ -44,6 +44,20 @@ zero-extended on a load yielding `52501 (0x0000 0000 0000 CD15)`.
Similarly, floats can be limited to IEEE754 32-bit standard format and will be
rounded when assigned, and inflated to 64-bits when loaded.
+The complete list of primitive types is now:
+```java
+int, i64; // 64-bits, matching modern hardware
+// u64 // NOT implemented, as it hints at some kind of >64 bit behavior
+i32, u32 // 32 bits, sign or zero extended on load
+i16, u16 // 16 bits, sign or zero extended on load
+ i8, u8 // 8 bits, sign or zero extended on load
+ i1, u1 // 1 bit , sign or zero extended on load
+bool // Same as u1
+flt, f64 .// IEEE 754 64-bit float, sometimes called a "double"
+f32 .// IEEE 754 32-bit float
+```
+
+
## Type Implementation