4 ms·
The fact that constant-folding is hard because the C language doesn't have portable semantics for basic things like integer addition (with overflow) is just bra
by titzer 4y ago
The fact that constant-folding is hard because the C language doesn't have portable semantics for basic things like integer addition (with overflow) is just braindead.
- pjmlp 4y agoYes, there are lots of optimizations that are hard in C and only possible thanks to UB abuse.
- titzer 4y agoI feel like C screwed up cross-compilation so badly that people think it is hard for some reason. Which it obviously isn't. The Virgil compiler just includes all of its backends in builds for all of its hosts. There's nothing special about the host machine.