Hacker News new | ask | show | jobs
by coldpie 3992 days ago
This is exactly what I was suggesting. The compiler definitely has that information.
1 comments

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).