Issue
In the transpiler, all arithmetic operations use w (word/integer) type:
"%bin{} = w add {},{}" // always integer arithmetic
Float operations should use f (float) type but currently are not distinguished.
Example
const float d = 2/2 // Should be 1.0, might be 1 (int)
Problem
The SSA generation does not differentiate between integer and float operations:
w add instead of f add for floats
- No float literal handling in data section
Files
crates/transpiler/src/lib.rs
- Type system needs float operation codes
Labels: bug, type-system, compiler
Issue
In the transpiler, all arithmetic operations use
w(word/integer) type:Float operations should use
f(float) type but currently are not distinguished.Example
Problem
The SSA generation does not differentiate between integer and float operations:
w addinstead off addfor floatsFiles
crates/transpiler/src/lib.rsLabels: bug, type-system, compiler