Using LLVM as a cross compiler without fully retargeting gcc?
We are using LLVM to target a customizable processor
architecture. One of the activities to be supported is
architecture exploration, where one explores the processor
design space (e.g. connectivity, number of FUs) and tries
to find a good match for the application at hand.
The exploration needs to be relatively rapid, so targeting
and compiling gcc for each of the processor variants is
My understanding at this point is that in order to make
things work correctly, gcc needs to know about the sizes
of primitive values like ints, and it probably needs to
known the endianess of the target. But I am guessing it would
also require me to provide a description of the target
architecture, even if I am only going to use gcc for emitting
LLVM byte code.