[comp.lang.c] Porting Cfront's output to other systems.

dror@starnet.uucp (Dror Matalon) (06/22/91)

I'd like to know what would be needed to port Cfront's output to other systems:
1. You need the stream library if you use it.
2. Are there any other libraries that are standard with Cfront and not with C?
3. There is something that is done in link time (I think that it has to do
with the vtables). What is that something and how hard would it be to 
implement on other systems.
4. Any other issues?


Thanks in advance

Dror

benson@odi.com (Benson I. Margulies) (06/23/91)

You need to deal with patch/munch.
-- 
Benson I. Margulies

djones@megatest.UUCP (Dave Jones) (06/25/91)

From article <1991Jun21.211157.10040@starnet.uucp>, by dror@starnet.uucp (Dror Matalon):

> 4. Any other issues?

I'm using a pure-compiler version of c++ now, but the version of cfront
that I used to have produced C code that had already effectively had a cpp
done on it. Therefore, you'll have to be sure that the #include-files
the compiler finds are for the target machine and target-machine libraries,
not for the host machine. Beware of any #ifdef switches on the machine
type in the source code or in the #include-files. Better yet, get a
C++ compiler for the target machine, and don't even try to port the
derived C code.