C preprocessor vs Macro processor

Peter Govoni <peter.govoni@analog.com>
2 Nov 1997 23:18:29 -0500

          From comp.compilers

Related articles
C preprocessor vs Macro processor peter.govoni@analog.com (Peter Govoni) (1997-11-02)
Re: C preprocessor vs Macro processor gjb@cs.washington.edu (Greg Badros) (1997-11-07)
Re: C preprocessor vs Macro processor tgm@netcom.com (1997-11-11)
Re: C preprocessor vs Macro processor ok@cs.rmit.edu.au (1997-11-13)
| List of all articles for this month |

From: Peter Govoni <peter.govoni@analog.com>
Newsgroups: comp.compilers
Date: 2 Nov 1997 23:18:29 -0500
Organization: Analog Devices, Inc.
Keywords: C, parse

Could someone please explain why a macro processor (e.g. M4)
is 1) more powerful than the C preprocessor and
2) more suitable for assembly languages

Does the C preprocessor hold any advantage over M4 ?

Peter Govoni peter.govoni@analog.com
Analog Devices, Inc. (617) 461-3621
[This is about this fifth time this exact question has showed up this
month. Is it on a quiz or something? Answers: 1. m4 can do
conditional expansion inside macros, cpp can't. 2. It's not execpt
that people who write assembler macros usually want the most powerful
macro language they can find. III. It's somewhat better matched to C
syntax (understands C comments, for example), and it's essential if
you want to compile C programs. -John]


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.