Hacker News new | past | comments | ask | show | jobs | submit login

This is exactly what I was suggesting. The compiler definitely has that information.



It's a good idea, but then you are tied to one compiler.

So, what if Clang implements it, but not GCC? Or what if Clang and GCC implement it, but not the Sun or Intel compilers? Or what about all the GCC copies every board maker forks when they create something custom?

It's tricky making in-compiler behavior non-standard (though, I guess that's what compiler flags are for).




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

Search: