This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
ILP64 ? ILP32, LP64
- From: "Brian O'Mahoney" <omb at teraflex-bp dot dyndns dot org>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Wed, 4 Feb 2009 06:51:25 +0100
- Subject: ILP64 ? ILP32, LP64
- Message_id: <200902040651.25479.omb@teraflex-bp.dyndns.org>
- Read-receipt-to: omb@bluewin.ch
- Replyto: omb@bluewin.ch
Much legacy code has problems with the LP64 model, with I 32 due to truncated
pointers and pointer -> int -> pointer conversions which through away 32 bits
of the pointer.
Is there anyway to force ILP64 ie 64 bit ints? Clearly for code going forward
one needs to __fic_it|__ but it is a real pain for legacy code of a tool you
only see running once.
I know that you can force ILP32 on 86_64 but something like -mi64 would be
neat, anyone know an easy way?
TIA, Brian