Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

RE: Zsh 4.0.2 + 64bit Solaris 8 Forte 6.1 compiler

Andrej Borsenkow writes:
 > Yes. I do not have either Solaris or Forte compiler so I cannot do it
 > myself. As said, either describe how your compiler can be detected or, if it
 > is confirmed that -KPIC is supported by all compilers on Solaris, we can
 > change it.
I have made some digging.  Oldest compiler I could find is 4.2 which
is quite old (cc: WorkShop Compilers 4.2 30 Oct 1996 C 4.2) and all
series 4 compilers are quite the same.  This old compiler knows -KPIC
-option and I also checked xemacs 21.4 configure and they use -KPIC
almost for every system available (irix/sysv4/unixware/solaris).
/opt/SUNWspro/bin/cc -cflags|grep -i pic
-KPIC           Compile position independent code with 32-bit addresses
-Kpic           Compile position independent code

Next thing is how to detect 64-bit.  Isainfo is quite good for this
and old compilers don't know anything about -xarch=v9 or v9a/v9b.
Only things that change for eg. on xemacs configure when using 64-bit
are size of long and void *

man cc
---clip clip---
v9  Compile for the SPARC-V9 ISA.
v9a Compile for the SPARC-V9 ISA with UltraSPARC extensions.
v9b Compile for the SPARC-V9 ISA with UltraSPARC-III extensions.
---clip clip---

man isainfo
---clip clip---
     -b    Prints the number of bits in the address space of  the
           native instruction set.
     -k    Prints the name of the instruction set(s) used by  the
           operating  system  kernel  components  such  as device
           drivers and STREAMS modules.
     -n    Prints the name of the native instruction set used  by
           portable applications supported by the current version
           of the operating system.
     -v    Prints  more  detailed  information  about  the  other
---clip clip---

% /usr/bin/isainfo -b 
% /usr/bin/isainfo -k
% /usr/bin/isainfo -n
% /usr/bin/isainfo -bv
64-bit sparcv9 applications
% /usr/bin/isainfo -kv
64-bit sparcv9 kernel modules
% /usr/bin/isainfo -nv
64-bit sparcv9 applications

SUN Microsystems Oy PL 112, Lars Sonckin kaari 12, 02601 ESPOO, Finland
Tomi Vainio (System Support Engineer)     +358 9 52556300 hotline
email: Tomi.Vainio@xxxxxxx                +358 9 52556252 fax

Messages sorted by: Reverse Date, Date, Thread, Author