Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

A problem is how people have started depending on the optimizations. "This tower of abstractions is fine, the optimizer will remove it all" Result is some modern idioms run slow as molasses without optimization, and you can't really use o0 at all.


Indeed. Also,

- Turbo Pascal was compiling at o-1, at best. For example, did it ever in-line function calls?

- its harder to generate halfway decent code for modern CPUs with deep pipelines, caches, and branch predictors, than it was for the CPUs of the time.


> its harder to generate halfway decent code for modern CPUs with deep pipelines

Shouldn't be the case for an O0 build.


Can you give an example? AFAICT monomorphization takes the major portion of time, and it's not even a result of some complicated abstraction.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: