MinGW MSYS Slow -- How to make faster?
MinGW is still slow a year after that question was posted, and I've tried to fix it but there's no difference. Some开发者_运维知识库one else apparently has the same problem too, but no fix.
I'm trying to compile GCC and each object file is taking several seconds. (This varies wildly; sometimes it's 1 second, sometimes it's 30.) (In any case, though, it's definitely not my computer; it's fine with other compilers.) Does anyone know why it's so slow, and if there are any options I can set to improve the compile time?
Thanks!
Well, MSYS and Cygwin have to be slow by design, or in other words are very hard to make faster. There is continuous string processing of every command passed to the Bash shell, the POSIX shared memory pool to manually manage etc...
If you want to build GCC on Windows, I strongly suggest installing a free VM software, like Virtualbox, install a lightweight distro, and cross-compile a Windows toolchain. From Windows, use some other build system than autocrap (CMake, Qt's qmake, ...) and speed should not be an issue anymore. It might sound like a lot of hassle and the complete opposite of a Minimal SYStem, but heck, it works sooo much better, and much faster.
精彩评论