This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: front-end tools for preprocessor / macro expansion
- From: Tom Tromey <tromey at redhat dot com>
- To: henrik dot sorensen at balcab dot ch
- Cc: pl1gcc-development at lists dot sourceforge dot net, GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: 19 Apr 2005 12:08:11 -0600
- Subject: Re: front-end tools for preprocessor / macro expansion
- References: <200504181610.57492.henrik.sorensen@balcab.ch>
- Reply-to: tromey at redhat dot com
>>>>> "Henrik" == Henrik Sorensen <henrik.sorensen@balcab.ch> writes:
Henrik> For the PL/I front-end project (pl1gcc.sourceforge.net), I am
Henrik> just about to begin to add a preprocessor expansion step, and
Henrik> was wondering what other front-end do.
Henrik> My initial thoughts were to create a completely separate
Henrik> program that just do the preprocessing and passes the output
Henrik> to the compiler.
The C preprocessor was initially a standalone executable and was
rewritten to be a library. I would recommend you just start out this
way. It is simple to turn a library into a standalone executable, if
that turns out to be desirable, but harder to go the other direction.
Tom