by panic · 15y ago · 0 comments
A compiler would be better off compiling directly to either native code (if running on a CPU) or something like PTX (for NVidia GPUs).
We've been playing this game every since Fortran was first invented. Yeah, you probably could get better performance if you wrote your application one level of abstraction lower, but once you get a sufficiently sophisticated compiler, the performance benefit is marginal compared to the programming time and effort. Further, libraries tend not to be written directly in assembly, and will often rely on other libraries. I could see implementing something similar to what MS showed purely as a C++ library.