hi, 

 So as you have UltraSparc 4 Processors  and want to build 64bit binaries. The 
commandline 
to compile the source code with the Studio 11 /opt/SUNWspro/bin/cc    C 
compiler   would contain these directives :


  # cc -xtarget native64   -xarch v9b 

  This will compile  optimised code that will run on the target machine   
architecture . 

  If you want code that will run on any  64-bit sparc server using 64-bit 
Solaris  you should use:

 #  cc -xtarget generic64 -xarch v9 
   
then ofcourse you will probably want  to play  with the -xOn   optimization 
flags or the "-fast" flag.
If you want maximum optimizaton of the code you could do :

  # cc -fast -xtarget native64 -xarch v9b 

If that does not work  try the morte conservative:

 # cc -xO3 -xtarget native64 -xarch v9b 

to link in  the library that you have and assumeing the library is called 
libFoo.so:

# cc -xO3 -xtarget native64 -xarch v9b  -L/path/to/library  -lFoo
 
 
This message posted from opensolaris.org

Reply via email to