Limitations in porting of GCC
Serge S. Spiridonoff
sssATcorbina.net
Mon Sep 13 12:29:00 GMT 1999
Hi!
Does anybody know what are the limitations for the class of platforms the
GCC can be ported to?
I mean is it possible to port GCC to a non-standard platform, for instance,
with no registers and no stack at all?
We need to build a compiler for a rather new different platform and we don't
want to spend a lot of time writing a compiler from scratch (this is a big
job and we wish to focus on platform specific problems). GCC sounds a good
idea to start with and let it parse the C code. The problem is that probably
this platform can't be described via machine description and thus the
build-in mechanisms of porting won't work for our platform. A possible
workaround may be to replace the code generation part of gcc with our own.
Is it possible? Or gcc passes are too tightly bound?
Are there any docs (besides of gcc source files) telling about what and in
which format the parser generates?
What is the best place to insert the new code to, after the parser generates
the partial syntax trees or after the RTL is generated?
Thanks in advance,
Serge S. Spiridonoff
More information about the Gcc-help
mailing list