On Mon, Sep 14, 2009 at 11:19:00PM +0200, Hans-Peter Diettrich wrote: > Marco van de Voort schrieb: > > >>>> How does a C front-end affect the Pascal front-end? > >>> If it doesn't affect it, it has no use or what would you do with macros > >>> in headers? If they aren't supported in the pascal front end, it makes > >>> no sense to read them with a C frontend. > >> [ ] You understand what's a preprocessor > > > > So you are suggesting a preprocessor that reads C and outputs Pascal? :-) > > No, this were what ToPas does. Instead I suggest to skip the > intermediate Pascal code, and to compile the given source code immediately.
It would mean integrating a full blown substitution based preprocessor. But this is a sidetrack of the real problem: I don't see a real benefit in integrating a C compiler. The main benefits of that one would only get when the C compiler becomes terribly advanced, something that I don't see happening anytime soon, and the position of 3rd party (non-system) C compilers on Unix is not terribly useful either. -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
