22:14
@NateEldredge My intended question was not how to make a particular target work, but rather whether there is any way a transpiler can receive any benefit from optimizations that the target compiler would perform more broadly than allowed in the source language, or whether the only way for those optimizations to be done at all would be for the transpiler to do them itself.
2 hours later…
23:54
Well, at that level of generality, I think there are only very general and rather tautological answers. You can look for language constructs that block the undesired optimizations while preserving, as much as possible, the desired ones; such as a dummy side effect. (In the case at hand, we haven't found one that works ideally in practice.) Or you can restrict yourself to target compilers that allow you to block them (like gcc and clang with
-fno-finite-loops
). « first day last day (15 days later) »
Transcript for
Jun25
Jun26
Jul11
Discussion between supercat and Nate …
Imported from a comment discussion on langdev.stackexchange.co...