public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] strip gcc preprocessor directives?
@ 2001-07-23  6:17 A Roturier
  2001-07-23  9:02 ` Daniel Morris
  0 siblings, 1 reply; 3+ messages in thread
From: A Roturier @ 2001-07-23  6:17 UTC (permalink / raw)
  To: ecos-discuss

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 .........

but in out.txt file those directives were still there(#ifdef, #else.. etc).
is there any way to accomplish this?

thanx for help,
kc

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ECOS] strip gcc preprocessor directives?
  2001-07-23  6:17 [ECOS] strip gcc preprocessor directives? A Roturier
@ 2001-07-23  9:02 ` Daniel Morris
  2001-07-23 18:54   ` I-Jui Sung
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Morris @ 2001-07-23  9:02 UTC (permalink / raw)
  To: A Roturier; +Cc: ecos-discuss

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ECOS] strip gcc preprocessor directives?
  2001-07-23  9:02 ` Daniel Morris
@ 2001-07-23 18:54   ` I-Jui Sung
  0 siblings, 0 replies; 3+ messages in thread
From: I-Jui Sung @ 2001-07-23 18:54 UTC (permalink / raw)
  To: Daniel Morris, A Roturier; +Cc: ecos-discuss

There exists some useful UNIX tools for removing conditional compilation
preprocessor directives (but not
expanding macros, substituting #defines to their values, etc. )

try to gogle `scpp' or `unifdef'.

Regards,
IJS
----- Original Message -----
From: "Daniel Morris" <danielm@redhat.com>
To: "A Roturier" <roturier@hotmail.com>
Cc: <ecos-discuss@sources.redhat.com>
Sent: Monday, July 23, 2001 11:58 PM
Subject: Re: [ECOS] strip gcc preprocessor directives?


> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-07-23 18:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-23  6:17 [ECOS] strip gcc preprocessor directives? A Roturier
2001-07-23  9:02 ` Daniel Morris
2001-07-23 18:54   ` I-Jui Sung

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).