> 2009/1/21 Ian Lance Taylor <i...@google.com>: > What support needs to be in gcc > proper?
As my wrapper compiler do some job, that GCC does, so I thought, that it would be better to add CRPC support to GCC. Maybe using some kind of plugin. CRPC wrapper compiler has it own automata and reads all the C input. You can name it as specialized preprocessor. When I started this work I though, that RPC functionality supported by compiler is a very good idea. No need using external tools, no need to think about network functions and so on. So wrapper compiler is good solution, as you use only one program - extension compiler and main compiler in one. > You say it needs only libc, but of course it needs > more than the ISO C library functions. Is the code written in a way > that makes it easy to port to other systems? CRPC has two main parts - C-wrapper compiler and shared library. Compiler is implicitly written with libc functions and standart Unix system calls. At this point it can be ported to any platform, that supports C. Wrapper compiler is built on my own parser, it does not need Lex/Bison. Parser partially implemets C syntax - variable declarations, typedefs and function prototype declarations. Library is dependent only on libc whether there is no need in threading support. The system should work on any BSD-like system, I have tested on Darwin(Power-PC), and it was ok. Also system will work on 32-bit and 64-bit systems (tested on amd64). On Linux everything is ok. Port it on CygWin is not a big problem to.