This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: strip gcc preprocessor directives?
- To: A Roturier <roturier at hotmail dot com>
- Subject: Re: [ECOS] strip gcc preprocessor directives?
- From: Daniel Morris <danielm at redhat dot com>
- Date: Mon, 23 Jul 2001 16:58:24 +0100
- Cc: ecos-discuss at sources dot redhat dot com
- References: <F110kkZIhTrBoe2U8QV00003e34@hotmail.com>
On Mon, Jul 23, 2001 at 01:17:39PM +0000, A Roturier wrote:
> hello,
>
> i'd like to strip off those gcc preprocessor directives so the source codes
> are
> more readable.
>
> i browsed through gcc online help and found the argument,
>
> arm-elf-gcc -Wa,-a=out.txt .........
Either invoke the C preprocessor directly, or feed arm-elf-gcc the
-E flag. Note you'll need to pass your usual definitions and macros,
or else the source you'll be reading won't match what is going to
be compiled!
Daniel