3 ms·
I haven't noticed GCC being slower, though I admittedly haven't measured. Which build of GCC do you use? MinGW64? or MSYS or something else? If you use the vers
by mehrdadn 6y ago
I haven't noticed GCC being slower, though I admittedly haven't measured. Which build of GCC do you use? MinGW64? or MSYS or something else? If you use the versions that are Cygwin derivatives, they will probably be slower, but that's not really due to GCC.
- qalmakka 6y agoNo, it's a native mingw-based GCC toolchain(cross compiler for an embedded platform), and everything is noticeably slower than on Linux or even macOS. I think it's because GCC is designed as relying on a multitude of separate binaries instead of being a single process. For each file it compiles it spawns a truckload of separate processes (collect2, cc1plus, as, ld...) and if there's something that's slow as heck on Windows, is spawning processes.
- mehrdadn 6y agoYou're right about the slowness! I just noticed it now. I'm confused why though -- I don't actually see it spawning a lot of processes, and the slowness is far beyond what could be explained by that. Even a single process call appears to run much more slowly. I haven't dug into it but maybe the I/O pattern is funny?