View source code output from pre-processor?

Started by PhilG57, September 14, 2010, 12:50:46 AM

Previous topic - Next topic

PhilG57

I'd like to see the C source code produced by the preprocessor after it has read my source file and resolved the macros, #defines, etc.  Is this possible???

Thanks. 

TimoVJL

From PellesC help or commandline:

/E Runs the preprocessor only (to stdout).


>pocc.exe
Pelles ISO C Compiler, Version 6.00.6
Copyright (c) Pelle Orinius 1999-2009

Syntax:
POCC [options] srcfile{.c|.asm}

Options:
/D<name>[=<text>]  Define a preprocessor symbol
/E                 Preprocess only (to stdout)
/Fo<outfile>       Name the output file
...


May the source be with you

PhilG57

Thanks.  I could not get the /Fo to create an output file I could later view but I was able to wade through the listing provided in the 'Project' window of the compiler.  Thanks again.

TimoVJL

Use option:
/P                 Preprocess only (to srcfile.i)
May the source be with you