
3 Jul
2006
3 Jul
'06
3:01 p.m.
For 32bit compilation, consider this:
g++ -mcpu=v8 -mtune=ultrasparc3 <file>
For 64bit compilation, try this
g++ -mcpu=v9 -mtune=ultrasparc3 -m64 <file>
<snip> Re-reading the g++ docs, it seems that compiling with v9 in 32-bit mode implies v8+. So a small change to my original compile line: 32-bit build:
g++ -mcpu=v9 -mtune=ultrasparc3 foo.C
file a.out a.out: ELF 32-bit MSB executable SPARC32PLUS Version 1, V8+ Required, dynamically linked, not stripped
g++ -mcpu=v9 -mtune=ultrasparc3 -m64 foo.C file a.out a.out: ELF 64-bit MSB executable SPARCV9 Version 1, dynamically
64-bit build: linked, not stripped Tom