[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gccxml
Subject:    Re: [GCC-XML] "Cross compiling" with GCC-XML
From:       Brad King <brad.king () kitware ! com>
Date:       2006-04-13 17:51:07
Message-ID: 443E8F8B.6090102 () kitware ! com
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic