How do I get Windows to go as fast as Linux for compiling C++?

后端 未结 13 1057
生来不讨喜
生来不讨喜 2020-12-22 15:14

I know this is not so much a programming question but it is relevant.

I work on a fairly large cross platform project. On Windows I use VC++ 2008. On Linux I use gcc

13条回答
  •  北荒
    北荒 (楼主)
    2020-12-22 15:45

    Try using jom instead of nmake

    Get it here: https://github.com/qt-labs/jom

    The fact is that nmake is using only one of your cores, jom is a clone of nmake that make uses of multicore processors.

    GNU make do that out-of-the-box thanks to the -j option, that might be a reason of its speed vs the Microsoft nmake.

    jom works by executing in parallel different make commands on different processors/cores. Try yourself an feel the difference!

提交回复
热议问题