Repository navigation
Commit df2703c
committed
docs: correct float-wall scope — needs f64 value-type tracking, not just binop dispatch
Investigation correction: the float-wall fix is bigger than "add a gen_binop
arm". The f64 instructions exist, but codegen's value model is i32-only — params
(codegen.ml ~2995) and results (~2996) are hard-coded I32, and alloc_local
(~181) is untyped, so float values cannot flow through params/returns/locals.
The load-bearing change is typed locals (item 3); params/returns are small; the
binop dispatch is the string-wall ExprFloatBinary pattern. A narrow slice
(params+returns+comparisons+stack arith, erroring on float lets) compiles
Float->Int classifiers without typed locals but is partial.
https://claude.ai/code/session_01WoKhFQePiRsAj7aqnxbG8s1 parent 2af23f9 commit df2703c
1 file changed
Lines changed: 26 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
57 | 81 | | |
58 | 82 | | |
59 | 83 | | |
| |||
0 commit comments