CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

somehow access the ccsc preprocessor output file

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
zaskzask



Joined: 27 Jun 2017
Posts: 3

View user's profile Send private message

somehow access the ccsc preprocessor output file
PostPosted: Wed Aug 23, 2017 6:16 am     Reply with quote

Hi,

With the gcc compiler if we put

Code:
gcc -E


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: 19552

View user's profile Send private message

PostPosted: Wed Aug 23, 2017 6:43 am     Reply with quote

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. Sad
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group