Re: Compiler options SS11



jpjlrc@xxxxxxxxx wrote:
Thanks Chris.

Please don't top-post.

Yes I have this application running on Solaris 9 Sparc(32-bit) before,
and I am now recompiling it for Solaris 10 AMD. The main considerations
for me at this point seems to be the -xtarget and -xarch flags.

Only use these if you are targeting a specific hardware platform,
otherwise leave them alone.

If these flags are not set, does the Sun Studio 11 compiler by default
generate code that is optimised for the current platform on which it is
compiled?

No, just the generic type (sparc or x86).

FYI, I didn't set the -xtarget ot -xarch flags for my 32-bit Ultra
Sparc build. Hence wondering...what this mean for S10 AMD.

Same as sparc, you will get a generic 32 bit x86 executable that can be
used on any x86 or x64 platform.

--
Ian Collins.
.



Relevant Pages

  • Re: OT: Sparc not dead yet
    ... Sparc competes against power and 8086. ... AMD and Intel *covet* the top end. ... Intel & x86 upward like noone else ever has. ... when did Intel decide to again push ahead with x86? ...
    (comp.os.vms)
  • Re: OT: Sparc not dead yet
    ... Sparc competes against power and 8086. ... the majority of servers is in the 4-8 core size. ... AMD and Intel *covet* the top end. ... Intel & x86 upward like noone else ever has. ...
    (comp.os.vms)
  • Re: Let me own OpenVMS and I will destroy the linux market!
    ... >>Solaris x86 makes an interesting parallel, ... SPARC still has a much larger SW portfolio than x86 but the gap ... > even less software being available on the newer platform. ...
    (comp.os.vms)
  • Re: Compiler options SS11
    ... just the generic type (sparc or x86). ... So are there any compiler flags that determine whether its for sparc or ... Only use these if you are targeting a specific hardware platform, ...
    (comp.unix.solaris)
  • Re: Compiler options SS11
    ... just the generic type (sparc or x86). ... So are there any compiler flags that determine whether its for sparc or ... specific platform, because by selecting a specific version of Sun Studio to ...
    (comp.unix.solaris)