Re: Compiler options SS11
- From: Giorgos Keramidas <keramida@xxxxxxxxxxxxxxx>
- Date: Sun, 14 Jan 2007 06:09:31 +0200
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.
.
- References:
- Compiler options SS11
- From: jpjlrc
- Re: Compiler options SS11
- From: Chris Ridd
- Re: Compiler options SS11
- From: jpjlrc
- Re: Compiler options SS11
- From: Ian Collins
- Re: Compiler options SS11
- From: jpjlrc
- Compiler options SS11
- Prev by Date: Re: Compiler options SS11
- Next by Date: Re: What's more efficient on SunOS 10: socketpair or pipe system calls
- Previous by thread: Re: Compiler options SS11
- Next by thread: Re: Compiler options SS11
- Index(es):
Relevant Pages
|