Can massive nested loops cause the linker to run endlessly when compiling in Release-Mode?

后端 未结 6 1166
悲&欢浪女
悲&欢浪女 2020-12-30 05:59

I\'m compiling a very small Win32 command-line application in VS2010 Release-Mode, with all speed optimizations turned on (not memory optimizations).

This a

6条回答
  •  我在风中等你
    2020-12-30 06:17

    Here in my company we discovered something similar.

    As far as I know it is no endless loop, just a very long operation.

    This means you have to options:

    1. turn off the optimizations
    2. wait until the linker has finished

    You have to decide if you really need these optimizations. Here the program is just a little helper, where it does not matter if the program is running 23.4 seconds or 26.8. The gain of program speed compared to the build speed are making the optimizations nearly useless. At least in our special scenario.

提交回复
热议问题