[GCC-XML] "Cross compiling" with GCC-XML
Brad King
brad.king at kitware.com
Thu Apr 13 13:51:07 EDT 2006
Petri Rehtonen wrote:
> I would like to know the class layout for target ARM-EABI (using the
> field offsets,class size and alignment) and would like to use the
> GCC-XML in windows and linux to do so.
>
> Is it possible to compile the GCC-XML so that the class layout is
> compatible with the ARM-EABI?
This will be safe only if your compiler is using the exact same GCC
version that is used for GCC-XML's parser (GCC 3.3). The C++ ABI is not
stable across compiler versions. If you still want to proceed you may
be able to get things working.
The gccxml/GCC/gcc/config directory has a bunch of headers that
configure the compiler's host and target architectures. Look in
gccxml/GCC/config_cmake for how the architecture is chosen. You'll have
to mess a bit with this code to select the target architecture used when
building gccxml_cc1plus.
-Brad
More information about the gccxml
mailing list