-xarch default

When I compile with "-###" in Studio 10 on an UltraSparc machine it says the default for -xarch is "generic". The man page on the other hand says the default is, "v8plus". Is this a mistake in the man page or am I missing something? Any help would be greatly appreciated.

[278 byte] By [richard.buckwaltera] at [2007-11-27 10:14:42]
# 1

I think what really matters is what compiler produces. Check if object file/a.out are indeed v8plus with 'file' command and I'm sure they will be SPARC32PLUS.

MaximKartasheva at 2007-7-28 15:34:58 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2

Thanks for the reply...

When i do a file on it I get:

ELF 32-bit MSB executable SPARC32PLUS Version 1, V8+ Required, dynamically linked, not stripped

Is this indicative of it being compiled with -xarch set to V8+?

richard.buckwaltera at 2007-7-28 15:34:58 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 3

The default for Studio 10 and later on SPARC is v8plus. The -xarch=generic option gives you the default architecture for whatever compiler you are using. You don't need to specify -xarch=generic unless you want to override an -xarch option earlier on the command line.

clamage45a at 2007-7-28 15:34:58 > top of Java-index,Development Tools,Solaris and Linux Development Tools...