We get the c code after the preprocessing step. By curiosity, I was wondering if one could do the same thing with the CCS C Inc compiler. I tried to look a bit in the manual in particular in the file format section and in the invoking the command line compiler section but I didn't found anything, also I didn't understand so well so maybe I missed something. Does someone know how to do this (getting the C file just after the preprocessing step, i.e. the same we would get with gcc -E with gcc compiler?)
In my opinion there should be a way to do this.
Ttelmah
Joined: 11 Mar 2010 Posts: 19496
Posted: Wed Aug 23, 2017 6:43 am
I've wished the same thing many times....
Historically for example being able to access the macro expansion phase can be a terribly useful debugging tool.
However key is that CCS doesn't actually generate files for the intermediate steps. It is a single pass compiler, so doesn't do separate passes with output files. You can ask for it to leave it's scratch files undeleted, but these don't contain the earlier workings.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum