Re: [RFC] [PATCH] 32-bit pointers in x86-64

2007-11-25 Thread Andrew Pinski
On 11/25/07, Luca <[EMAIL PROTECTED]> wrote: > 7.1. Add __attribute__((pointer_size(XXX))) and #pragma pointer_size > to allow 64-bit pointers in 32-bit mode and viceversa This is already there, try using __attribute__((mode(DI) )). -- Pinski -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with

Re: [RFC] [PATCH] 32-bit pointers in x86-64

2007-11-25 Thread Martijn van Oosterhout
On Nov 25, 2007 5:29 PM, Luca <[EMAIL PROTECTED]> wrote: > This proof of concept patch modifies GCC to have 32-bit pointers and > longs on x86-64. Quick question: Does this involve putting an opcode prefix in front of each instruction using either of these. i.e. doesn't it blowup the codesize cons

[RFC] [PATCH] 32-bit pointers in x86-64

2007-11-25 Thread Luca
This proof of concept patch modifies GCC to have 32-bit pointers and longs on x86-64. This allows to create an "x86-32" architecture that takes advantage of the higher number of registers and support for 64-bit computation in x86-64 long mode while avoiding the disadvantage of increased memory usa