Re: Compiler options SS11



On 13 Jan 2007 17:18:59 -0800, 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?

To the best of my knowledge, Sun Studio does *NOT* support cross-compiling.
You have to use the x86 version to build x86 binaries, and the SPARC
version to build SPARC binaries.

This means that, in general, you shouldn't worry about 'portability' to a
specific platform, because by selecting a specific version of Sun Studio to
build your programs, you have implicitly picked the supported platform too.

.



Relevant Pages

  • Re: What does 64 bit mean? Lame question, but hear me out :)
    ... Too bad for them the x86 instructions are by far and large generated by code ... when writing code for a specific platform using specific API's ... make a point) compiler frontend ... And that is just from Intel Corp. AMD has their own extensions like 3dnow! ...
    (microsoft.public.dotnet.languages.csharp)
  • 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
    ... Now I got a good understanding of how to control the compiler output ... for my S10 AMD platform ... or just compiling it on AMD makes it portable to any x86? ... the platform they run on. ...
    (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 ... Only use these if you are targeting a specific hardware platform, ...
    (comp.unix.solaris)