4 ms·
This reminds me of a tool Jeff Roberts wrote at RAD Game Tools which would repackage libraries so they were loadable on Linux. At the time the motivation was th
by psykotic 9y ago
This reminds me of a tool Jeff Roberts wrote at RAD Game Tools which would repackage libraries so they were loadable on Linux. At the time the motivation was that MSVC was generating much better code than GCC for Bink, so he'd compile on Windows with MSVC and cross-link to Linux with his custom tool.
- reacweb 9y agoDoes MSVC still generate better code than GCC ? I do not find any recent benchmark.
- omgtehlion 9y agoGenerally, no. But you should benchmark your own code. In my experience, some code paths are better optimized by cl.exe, some by gcc. Overall difference is negligible though.
- jackmott 9y agoit's never been true in general but still happens sometimes.
- sqeaky 9y agoOf things I have benchmarked in the past 5 or so years GCC has not been beaten by GCC for any of my workloads or benchmarks. I do mostly things related to 3d graphics and are heavy on the CPU, but what little IO I have done follows this pattern too. As near as I can tell msvc is strictly inferior except for windows community adoption than gcc/mingw. Of course, benchmark your workload, I could be doing something odd that you are not.
- cupantae 9y agoGCC has not been beaten by GCC --> MSVC has not been beaten by GCC ftfy