RetroBSD/retrobsd bfc3125 — src/cmd/smlrc smlrc.c fp.c
Floats in Smaller C! double is an alias for float. IOW, only 32-bit single precision floats are supported. This isn't conformant, but OK for some embedded systems (e.g. RetroBSD) and simple compilers like this. Also, the following operators are not supported with floats at the moment: ++, --, +=, -=, *=, /=. But +, -, *, /, =, ||, &&, ?:, !, comparison, casts, if/while/for are OK.
Delta | File | |
---|---|---|
+1,556 | -453 | src/cmd/smlrc/smlrc.c |
+323 | -0 | src/cmd/smlrc/fp.c |
+208 | -1 | src/cmd/smlrc/lb.c |
+5 | -0 | src/cmd/smlrc/cgmips.c |
+1 | -1 | src/cmd/smlrc/Makefile |
+2,093 | -455 | 5 files |