I understand that TruUnix5.1 is a true 64 bit machine. On other machines, like solaris 8 and Aix 5.1, I can compile and link in 32 bit or 64 bit mode. I can use the "file" command to see if binaries are 32 or 64 bit. For Ex:
In Tru Unix 5.1, the file command does not say if it is 32 or 64 bit.
Can I compile and link to get 32 bit binaries?
Can I compile and link to get 64 bit binaries?
Do you only get 64 bit binaries when you compile and link?
Code:
$ file lib/libsqlplus.so
lib/libsqlplus.so: ELF 64-bit MSB dynamic lib SPARCV9 Version 1, dynamicald
$ file lib32/libsqlplus.so
lib32/libsqlplus.so: ELF 32-bit MSB dynamic lib SPARC Version 1, dynamicallyd
$
In Tru Unix 5.1, the file command does not say if it is 32 or 64 bit.
Can I compile and link to get 32 bit binaries?
Can I compile and link to get 64 bit binaries?
Do you only get 64 bit binaries when you compile and link?