Re: Re: software design clarification
Stefan Seefeld <[email protected]> Tue, 08 May 2007 15:39:30 -0400
| Newsgroups | gmane.comp.documentation.synopsis |
|---|---|
| Message-ID | <[email protected]> |
Roman Yakovenko wrote: > On 5/8/07, Stefan Seefeld <[email protected]> wrote: >> Right. Well, it was essentially people like Mark who suggested to work >> on GCC, to provide additional hooks to bind it to Synopsis, not >> necessarily >> to rewrite the Synopsis bits as part of GCC. > > GCC as AST generator has few problems, one of them is that it is not > able to compile code, which compiles fine with MSVC compiler. One of > the reasons I choose to integrate Synopsis as second backend is that > it simulates MSVC compiler on Windows, something that could not be > done with GCC. GCC-the-platform ships its own system headers (and libraries), and thus is very sensitive about the target platform. On the other hand, GCC-the-compiler is quite a bit more flexible. I don't think it would be such a huge effort to make it accept some MSVC- specific constructs. Also, the emulation code in Synopsis merely simulates native compilers by providing predefined macros and include search paths so its own preprocessor can be used with system headers (from the emulated compiler). A similar approach could work for GCC, too. It's just a matter of some programming. :-) Regards, Stefan -- ...ich hab' noch einen Koffer in Berlin...