3 ms·
The full program optimization is more applicable in a more formally specified language like SML I believe. Big projects take quite some time to compile, which i
by jjice 5y ago
The full program optimization is more applicable in a more formally specified language like SML I believe. Big projects take quite some time to compile, which is definitely a pain while developing.
So I'm out of my depth at this point, but this post from the SE Stack Exchange was interesting in that it highlights that those cross boundary optimizations can be handled at link time. I'm not sure how much is possible compared to MLton. MLton will have more access to type info, I'd assume, but maybe some metadata is stored in a .o file that I'm just not aware of.
I don't know much about this serious level of optimization, but I assume big C compilers get optimizations that are equally, if not more impressive and do just fine.
https://softwareengineering.stackexchange.com/a/370242 https://softwareengineering.stackexchange.com/a/370242