On Fri, 29 Oct 2010 16:45:43 +0100 Artem Shinkarov <artyom.shinkar...@gmail.com> wrote: > > Yes, you are right the goals are of course separable but my concern is > the following. All that I want to implement is a different behaviour > for handling conditional an macros. So basically all the modifications > are on the side of cpplib. > > Now when I want to have an interface for that for just giving a file > to the cpplib I end up with a 40 MB binary (instead of 2 MB) and the > most of the code will never be used. >
A possible solution might be to use something else than GCC as a preprocessor. For instance, ucpp http://code.google.com/p/ucpp/ claims to be standard conforming, and is probably much smaller. And I would tend to believe that hacking GCC to make its preprocessor a separate & smaller thing is a big work, and might perhaps not easily interest or motivate enough the rest of the GCC community. Cheers. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mine, sont seulement les miennes} ***