[GCC-XML] Configuring TARGET=64bit on windows?

Ben Schleimer bschleimer at lucasarts.com
Fri Jan 25 03:03:46 EST 2008

Hi Brad,
   Thanks for the reply.
I tried changing the target to x86_64-pc-win32 in
gcc_platform_win32.cmake but it still doesn't allow the -m64 option to
I'm thinking about using the powerpc64-unknown-linux-gnu target with
rs6000 cpu_type but I don't know what any of the other
SET are for. 

I just need help enabling the -m64 option so I can see the sizes and
offsets of the pointer fields.


> -----Original Message-----
> From: Brad King [mailto:brad.king at kitware.com] 
> Sent: Thursday, January 24, 2008 3:54 PM
> To: Ben Schleimer
> Cc: gccxml at gccxml.org
> Subject: Re: [GCC-XML] Configuring TARGET=64bit on windows?
> Ben Schleimer wrote:
> >   I'm trying out gccxml for a project we have here and I'm 
> wondering 
> > how I can make gccxml consider pointer sizes to be 64 bit 
> instead of 32?
> > Basically, I want to cross compile from win32 -> win64.
> GCC-XML focuses on interfaces, not implementations.  The 
> size/align attributes were added because they were easy and 
> helped some people at the time.  They are not representative 
> of what the simulated compiler would produce.  They are just 
> artifacts of the GCC parser inside GCC-XML.
> In order to do what you want you need to build GCC-XML in a 
> way that produces a GCC matching the target platform.  On 
> non-windows platforms GCC-XML uses the
>   gccxml/GCC/config_cmake/gcc_platform.sh
> script to select the host/target platform in a way similar to 
> how GCC itself does so.  On windows the file
>   gccxml/GCC/config_cmake/gcc_platform_win32.cmake
> hard-codes the platform information.  You can try hacking up 
> this file to select a different platform.  I don't remember 
> how I came up with that file in the first place though.  
> You'll have to dig into the GCC platform configuration 
> scripts and the gccxml/GCC/gcc/config directory.
> -Brad

More information about the gccxml mailing list