Re: 64 bit output

From: vishwas (vishwas_at_india.hp.com)
Date: 04/29/03


Date: Tue, 29 Apr 2003 18:17:08 +0530
To: Madan <mvatten@numbat.cs.rmit.edu.au>


>>> I am currently working on a Solaris and SPARC machines.. Juts wonder! when I produce binaries with my gcc am I outputting code which is
>>> 64 bit comaptible .. any answers .. also is there anyway to check out whether the code is 64 bit comaptible or not ...
>>
>
>>Run it and see what happens. :-)
>
> They do run .. Just wnat to know how to find whether the code is 64 bit compatible.. if there is a way around to find out ..

Run `file a.out` or any other elf utility to find out the binary is
64bit. If your solaris box does not support 64bit objects then
see gcc options: see info section (gcc.info.gz)SPARC Options

cc option -m32 , should help you in creating 32bit objects.

-vvp