* Supress macro expansion
@ 2008-01-02 9:09 vsdeepthi
2008-01-02 13:16 ` John Love-Jensen
0 siblings, 1 reply; 10+ messages in thread
From: vsdeepthi @ 2008-01-02 9:09 UTC (permalink / raw)
To: gcc-help
Hi All,
I want to preprocess the file but suppress macro expansion. Is this
possible using gcc?
I have tried "gcc -fdirectives_only -E" and "gcc -fpreprocessed -E".
Any inputs?
--
View this message in context: http://www.nabble.com/Supress-macro-expansion-tp14575239p14575239.html
Sent from the gcc - Help mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Supress macro expansion
2008-01-02 9:09 Supress macro expansion vsdeepthi
@ 2008-01-02 13:16 ` John Love-Jensen
2008-01-02 15:37 ` John Love-Jensen
` (7 more replies)
0 siblings, 8 replies; 10+ messages in thread
From: John Love-Jensen @ 2008-01-02 13:16 UTC (permalink / raw)
To: vsdeepthi, MSX to GCC
Hi vsdeepthi,
> I want to preprocess the file but suppress macro expansion. Is this
> possible using gcc?
Short answer: no.
Long answer: yes, you have access to the GCC source code and you could
munge that to make it do what you want.
> I have tried "gcc -fdirectives_only -E" and "gcc -fpreprocessed -E".
> Any inputs?
You'll have to write your own preprocessor.
Fortunately, there is a C/C++ preprocessor called Wave already written by
Hartmut Kaiser using Boost Spirit that you could use as a starting point and
customize from there.
http://spirit.sourceforge.net/repository/applications/wave.html
Boost Spirit is a EBNF-like representation in C++. (Technically it is an
object oriented recursive descent parser generator framework implemented
using template meta-programming techniques. The C++ alternative to using
flex/bison or lex/yacc.)
http://www.boost.org/libs/spirit/
Boost is a grab bag of incredible enhancements to the Standard C++ Library.
http://www.boost.org/
HTH,
--Eljay
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Supress macro expansion
2008-01-02 13:16 ` John Love-Jensen
@ 2008-01-02 15:37 ` John Love-Jensen
2008-01-02 15:51 ` John Love-Jensen
` (6 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: John Love-Jensen @ 2008-01-02 15:37 UTC (permalink / raw)
To: vsdeepthi, MSX to GCC
Hi vsdeepthi,
> I want to preprocess the file but suppress macro expansion. Is this
> possible using gcc?
Short answer: no.
Long answer: yes, you have access to the GCC source code and you could
munge that to make it do what you want.
> I have tried "gcc -fdirectives_only -E" and "gcc -fpreprocessed -E".
> Any inputs?
You'll have to write your own preprocessor.
Fortunately, there is a C/C++ preprocessor called Wave already written by
Hartmut Kaiser using Boost Spirit that you could use as a starting point and
customize from there.
http://spirit.sourceforge.net/repository/applications/wave.html
Boost Spirit is a EBNF-like representation in C++. (Technically it is an
object oriented recursive descent parser generator framework implemented
using template meta-programming techniques. The C++ alternative to using
flex/bison or lex/yacc.)
http://www.boost.org/libs/spirit/
Boost is a grab bag of incredible enhancements to the Standard C++ Library.
http://www.boost.org/
HTH,
--Eljay
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Supress macro expansion
2008-01-02 13:16 ` John Love-Jensen
2008-01-02 15:37 ` John Love-Jensen
@ 2008-01-02 15:51 ` John Love-Jensen
2008-01-02 17:00 ` John Love-Jensen
` (5 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: John Love-Jensen @ 2008-01-02 15:51 UTC (permalink / raw)
To: vsdeepthi, MSX to GCC
Hi vsdeepthi,
> I want to preprocess the file but suppress macro expansion. Is this
> possible using gcc?
Short answer: no.
Long answer: yes, you have access to the GCC source code and you could
munge that to make it do what you want.
> I have tried "gcc -fdirectives_only -E" and "gcc -fpreprocessed -E".
> Any inputs?
You'll have to write your own preprocessor.
Fortunately, there is a C/C++ preprocessor called Wave already written by
Hartmut Kaiser using Boost Spirit that you could use as a starting point and
customize from there.
http://spirit.sourceforge.net/repository/applications/wave.html
Boost Spirit is a EBNF-like representation in C++. (Technically it is an
object oriented recursive descent parser generator framework implemented
using template meta-programming techniques. The C++ alternative to using
flex/bison or lex/yacc.)
http://www.boost.org/libs/spirit/
Boost is a grab bag of incredible enhancements to the Standard C++ Library.
http://www.boost.org/
HTH,
--Eljay
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Supress macro expansion
2008-01-02 13:16 ` John Love-Jensen
2008-01-02 15:37 ` John Love-Jensen
2008-01-02 15:51 ` John Love-Jensen
@ 2008-01-02 17:00 ` John Love-Jensen
2008-01-02 21:36 ` John Love-Jensen
` (4 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: John Love-Jensen @ 2008-01-02 17:00 UTC (permalink / raw)
To: vsdeepthi, MSX to GCC
Hi vsdeepthi,
> I want to preprocess the file but suppress macro expansion. Is this
> possible using gcc?
Short answer: no.
Long answer: yes, you have access to the GCC source code and you could
munge that to make it do what you want.
> I have tried "gcc -fdirectives_only -E" and "gcc -fpreprocessed -E".
> Any inputs?
You'll have to write your own preprocessor.
Fortunately, there is a C/C++ preprocessor called Wave already written by
Hartmut Kaiser using Boost Spirit that you could use as a starting point and
customize from there.
http://spirit.sourceforge.net/repository/applications/wave.html
Boost Spirit is a EBNF-like representation in C++. (Technically it is an
object oriented recursive descent parser generator framework implemented
using template meta-programming techniques. The C++ alternative to using
flex/bison or lex/yacc.)
http://www.boost.org/libs/spirit/
Boost is a grab bag of incredible enhancements to the Standard C++ Library.
http://www.boost.org/
HTH,
--Eljay
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Supress macro expansion
2008-01-02 13:16 ` John Love-Jensen
` (2 preceding siblings ...)
2008-01-02 17:00 ` John Love-Jensen
@ 2008-01-02 21:36 ` John Love-Jensen
2008-01-03 1:22 ` John Love-Jensen
` (3 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: John Love-Jensen @ 2008-01-02 21:36 UTC (permalink / raw)
To: vsdeepthi, MSX to GCC
Hi vsdeepthi,
> I want to preprocess the file but suppress macro expansion. Is this
> possible using gcc?
Short answer: no.
Long answer: yes, you have access to the GCC source code and you could
munge that to make it do what you want.
> I have tried "gcc -fdirectives_only -E" and "gcc -fpreprocessed -E".
> Any inputs?
You'll have to write your own preprocessor.
Fortunately, there is a C/C++ preprocessor called Wave already written by
Hartmut Kaiser using Boost Spirit that you could use as a starting point and
customize from there.
http://spirit.sourceforge.net/repository/applications/wave.html
Boost Spirit is a EBNF-like representation in C++. (Technically it is an
object oriented recursive descent parser generator framework implemented
using template meta-programming techniques. The C++ alternative to using
flex/bison or lex/yacc.)
http://www.boost.org/libs/spirit/
Boost is a grab bag of incredible enhancements to the Standard C++ Library.
http://www.boost.org/
HTH,
--Eljay
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Supress macro expansion
2008-01-02 13:16 ` John Love-Jensen
` (3 preceding siblings ...)
2008-01-02 21:36 ` John Love-Jensen
@ 2008-01-03 1:22 ` John Love-Jensen
2008-01-03 3:01 ` John Love-Jensen
` (2 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: John Love-Jensen @ 2008-01-03 1:22 UTC (permalink / raw)
To: vsdeepthi, MSX to GCC
Hi vsdeepthi,
> I want to preprocess the file but suppress macro expansion. Is this
> possible using gcc?
Short answer: no.
Long answer: yes, you have access to the GCC source code and you could
munge that to make it do what you want.
> I have tried "gcc -fdirectives_only -E" and "gcc -fpreprocessed -E".
> Any inputs?
You'll have to write your own preprocessor.
Fortunately, there is a C/C++ preprocessor called Wave already written by
Hartmut Kaiser using Boost Spirit that you could use as a starting point and
customize from there.
http://spirit.sourceforge.net/repository/applications/wave.html
Boost Spirit is a EBNF-like representation in C++. (Technically it is an
object oriented recursive descent parser generator framework implemented
using template meta-programming techniques. The C++ alternative to using
flex/bison or lex/yacc.)
http://www.boost.org/libs/spirit/
Boost is a grab bag of incredible enhancements to the Standard C++ Library.
http://www.boost.org/
HTH,
--Eljay
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Supress macro expansion
2008-01-02 13:16 ` John Love-Jensen
` (4 preceding siblings ...)
2008-01-03 1:22 ` John Love-Jensen
@ 2008-01-03 3:01 ` John Love-Jensen
2008-01-03 3:28 ` John Love-Jensen
2008-01-03 6:39 ` John Love-Jensen
7 siblings, 0 replies; 10+ messages in thread
From: John Love-Jensen @ 2008-01-03 3:01 UTC (permalink / raw)
To: vsdeepthi, MSX to GCC
Hi vsdeepthi,
> I want to preprocess the file but suppress macro expansion. Is this
> possible using gcc?
Short answer: no.
Long answer: yes, you have access to the GCC source code and you could
munge that to make it do what you want.
> I have tried "gcc -fdirectives_only -E" and "gcc -fpreprocessed -E".
> Any inputs?
You'll have to write your own preprocessor.
Fortunately, there is a C/C++ preprocessor called Wave already written by
Hartmut Kaiser using Boost Spirit that you could use as a starting point and
customize from there.
http://spirit.sourceforge.net/repository/applications/wave.html
Boost Spirit is a EBNF-like representation in C++. (Technically it is an
object oriented recursive descent parser generator framework implemented
using template meta-programming techniques. The C++ alternative to using
flex/bison or lex/yacc.)
http://www.boost.org/libs/spirit/
Boost is a grab bag of incredible enhancements to the Standard C++ Library.
http://www.boost.org/
HTH,
--Eljay
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Supress macro expansion
2008-01-02 13:16 ` John Love-Jensen
` (5 preceding siblings ...)
2008-01-03 3:01 ` John Love-Jensen
@ 2008-01-03 3:28 ` John Love-Jensen
2008-01-03 6:39 ` John Love-Jensen
7 siblings, 0 replies; 10+ messages in thread
From: John Love-Jensen @ 2008-01-03 3:28 UTC (permalink / raw)
To: vsdeepthi, MSX to GCC
Hi vsdeepthi,
> I want to preprocess the file but suppress macro expansion. Is this
> possible using gcc?
Short answer: no.
Long answer: yes, you have access to the GCC source code and you could
munge that to make it do what you want.
> I have tried "gcc -fdirectives_only -E" and "gcc -fpreprocessed -E".
> Any inputs?
You'll have to write your own preprocessor.
Fortunately, there is a C/C++ preprocessor called Wave already written by
Hartmut Kaiser using Boost Spirit that you could use as a starting point and
customize from there.
http://spirit.sourceforge.net/repository/applications/wave.html
Boost Spirit is a EBNF-like representation in C++. (Technically it is an
object oriented recursive descent parser generator framework implemented
using template meta-programming techniques. The C++ alternative to using
flex/bison or lex/yacc.)
http://www.boost.org/libs/spirit/
Boost is a grab bag of incredible enhancements to the Standard C++ Library.
http://www.boost.org/
HTH,
--Eljay
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Supress macro expansion
2008-01-02 13:16 ` John Love-Jensen
` (6 preceding siblings ...)
2008-01-03 3:28 ` John Love-Jensen
@ 2008-01-03 6:39 ` John Love-Jensen
7 siblings, 0 replies; 10+ messages in thread
From: John Love-Jensen @ 2008-01-03 6:39 UTC (permalink / raw)
To: vsdeepthi, MSX to GCC
Hi vsdeepthi,
> I want to preprocess the file but suppress macro expansion. Is this
> possible using gcc?
Short answer: no.
Long answer: yes, you have access to the GCC source code and you could
munge that to make it do what you want.
> I have tried "gcc -fdirectives_only -E" and "gcc -fpreprocessed -E".
> Any inputs?
You'll have to write your own preprocessor.
Fortunately, there is a C/C++ preprocessor called Wave already written by
Hartmut Kaiser using Boost Spirit that you could use as a starting point and
customize from there.
http://spirit.sourceforge.net/repository/applications/wave.html
Boost Spirit is a EBNF-like representation in C++. (Technically it is an
object oriented recursive descent parser generator framework implemented
using template meta-programming techniques. The C++ alternative to using
flex/bison or lex/yacc.)
http://www.boost.org/libs/spirit/
Boost is a grab bag of incredible enhancements to the Standard C++ Library.
http://www.boost.org/
HTH,
--Eljay
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2008-01-02 14:14 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-02 9:09 Supress macro expansion vsdeepthi
2008-01-02 13:16 ` John Love-Jensen
2008-01-02 15:37 ` John Love-Jensen
2008-01-02 15:51 ` John Love-Jensen
2008-01-02 17:00 ` John Love-Jensen
2008-01-02 21:36 ` John Love-Jensen
2008-01-03 1:22 ` John Love-Jensen
2008-01-03 3:01 ` John Love-Jensen
2008-01-03 3:28 ` John Love-Jensen
2008-01-03 6:39 ` John Love-Jensen
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).