This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Keep Preprocessor Output AND Do Compile

I can't see an option on the ARM compiler to keep the preprocessor output and do the compile.

I can see:

-E: Just do the preprocessing;

-C: as above, but keep comments;

-P: Just do the preprocessing, without #line markers.

But I can't see one to do the preprocessing and the compile.

ie, the equivalent of -save-temps for GCC

gcc.gnu.org/.../Debugging-Options.html


Is there such a thing for Keil/ARM?

Parents
  • Aha! There is a 'C Preprocessor Listing' option on the 'Listings' tab of the Project options.

    Checking that option does as you say - for the whole project.

    I was just looking at the options for a specific file, and there is no GUI setting there - hence manually adding the -C command-line option.

    But the project-wide option will do just fine - many thanks!


    :-)

Reply
  • Aha! There is a 'C Preprocessor Listing' option on the 'Listings' tab of the Project options.

    Checking that option does as you say - for the whole project.

    I was just looking at the options for a specific file, and there is no GUI setting there - hence manually adding the -C command-line option.

    But the project-wide option will do just fine - many thanks!


    :-)

Children
No data