Re: Compiler options SS11



jpjlrc@xxxxxxxxx wrote:
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).



So are there any compiler flags that determine whether its for sparc or
x86? or just compiling it on AMD makes it portable to any x86?

Sun Studio isn't a cross-compiler.

I may be wrong, but I'm sure leaving out -xarch is the same as
-xarch=generic, so yes. You have to be explicit if you want 64 bit.

Thanks MAN!!, yes my new AMD m/c still has to be set properly to read
those man pages...hence I was looking for something online, I got it on
the SUN's webpages...

in bash,

MANPATH=<where you put studio>/SUNWspro/man; man cc

--
Ian Collins.
.



Relevant Pages

  • 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: why no -xcode=picxx and -xmemalign flags on X86?
    ... compiler* not be flag-for-flag compatible between Sparc and x86? ... I don't expect to have to "port" compiler flags between Sun ...
    (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)
  • Re: Migration: Solaris to Linux
    ... different compiler ... SPARC -> x86 ... Solaris -> Linux ...
    (comp.unix.solaris)
  • 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)