How can I run the MSVC preprocessor and compiler in two separate steps?

后端 未结 2 912
孤独总比滥情好
孤独总比滥情好 2021-01-12 00:14

I\'d like to run the Microsoft Visual Studio Compiler cl.exe without invoking the preprocessor. Is this possible? I thought that simply compiling preprocessed s

2条回答
  •  不思量自难忘°
    2021-01-12 00:19

    To my knowledge there is no way to run the compiler without the preprocessor (regardless of the fact that it doesn't do anything.

    However seperating the 2 stages will obviously be slower as you are adding a write to file and then read back of that file. If it doesn't need to do those writes it can hold it in memory and you save a tonne of time waiting for the disk to be written to & read from.

    ie Even if you could disable the pre-processor it would still be slower than running both stages simultaneously.

提交回复
热议问题