This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [cs branch] how to start compile server?
We haven't documented how to start the compile server, partly
because we're trying figure out the right way to do it!
This is how it currently works, for C. (C++ doesn't work yet.)
Start and instance of cc1 directly, with command-line flags:
path-to-cc1/cc1 -fserver -Dfoo -Ibar -fetc &
This creates a Unix-domina socket ./.cc1-server.
For each file you want to compile, run gcc in the
normal way, with -server but without the other flags:
gcc --server -c foo.c
This creates foo.o
When done, you can kill the server:
gcc --kill-server
(or just kill the cc1 process and remove ./.cc1-server).
--
--Per Bothner
per@bothner.com http://per.bothner.com/