diff options
| author | Cliff Click <cliffc@acm.org> | 2026-11-15 16:11:39 -0800 |
|---|---|---|
| committer | Cliff Click <cliffc@acm.org> | 2026-11-15 16:11:39 -0800 |
| commit | 9fe7c6f9697b5bbf3041261fdc60040e75cc674f (patch) | |
| tree | d92a8ff20ed984938d90ad8917b4d67fba9fb745 /chapter31/README.md | |
| parent | f0a6c6757a795b8e186de0076836a87acef59fa7 (diff) | |
| download | Simple-ch32.tar.gz Simple-ch32.zip | |
Split off chapter 31ch32
Ch 32 will be focused on compiler performance issues.
Diffstat (limited to 'chapter31/README.md')
| -rw-r--r-- | chapter31/README.md | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/chapter31/README.md b/chapter31/README.md index 0b46ea68..57f5557c 100644 --- a/chapter31/README.md +++ b/chapter31/README.md @@ -1,6 +1,7 @@ # Chapter 31: Software Drawing, Time, and Graphical Games -[Previous: Chapter 30 — Text Formatting and Diagnostics](../chapter30/README.md) +[Previous: Chapter 30 — Text Formatting and Diagnostics](../chapter30/README.md) | +[Next: Chapter 32 — Compiler Internal Speedups](../chapter32/README.md) In this chapter we use small graphical games to drive the language and library work. We add graphics, sound, and time support, with a few small C adapters @@ -182,7 +183,7 @@ that library. See the native references for [trigonometry](https://sourceware.org/glibc/manual/2.43/html_node/Trig-Functions.html) and [exponents, logarithms, and square roots](https://sourceware.org/glibc/manual/latest/html_node/Exponents-and-Logarithms.html). They remain ordinary C calls, so they are not constant-folded or discarded as -pure intrinsics. Clock uses `sin` and `cos` for its dial and hands. +pure intrinsics. Clock uses `sin` and `cos` for its dial and hands. `make test CLASS=MathTest` checks native results, special values, indirect calls, and code generation for all three targets. @@ -225,10 +226,10 @@ to preserve representations without aliasing tricks. A replacement definition must honor the same contract. Ordinary C functions remain opaque to the optimizer. The ideal nodes support constant folding, inverse cancellation, evaluation, and -serialization. Floating-point constant interning and serialization retain raw -NaN bits. x86 emits `MOVQ` between XMM and integer registers; ARM emits `FMOV`, -and RISC-V emits `FMV.X.D` / `FMV.D.X`. Register allocation may add copies or -spills, and normal module-initialization checks still apply. +serialization. Floating-point constant interning and serialization retain raw +NaN bits. x86 emits `MOVQ` between XMM and integer registers; ARM emits +`FMOV`, and RISC-V emits `FMV.X.D` / `FMV.D.X`. Register allocation may add +copies or spills, and normal module-initialization checks still apply. Future intrinsics such as compare-and-swap or fences must define their memory and escape effects explicitly, using nodes with the required ordering @@ -257,6 +258,7 @@ Simple also now recognizes hexadecimal (`0xff0000`) and leading-zero octal - Imported read-only primitive arrays retain their types. Object files can represent more than 255 distinct memory regions. - Floating-point constants and register copies preserve raw NaN bits. +- Fixed X86 combined Load+Cmp op scheduling. ## Further reading |
