32 bit pointers on Alpha Linux?

Casey Cady casey@sarahandcasey.com
Thu Mar 9 18:26:00 GMT 2000


At 09:13 PM 3/9/00 -0500, Brad Lucier wrote:
>> 
>> On Thu, Mar 09, 2000 at 03:30:09PM -0500, Brad Lucier wrote:
>> > How do I get gcc to generate code for 32 bit pointers on Alpha?
>> 
>> You can't. 
>> 
>> Moreover, -taso on DU doesn't give you 32-bit pointers either.  It
>> just makes sure that you can cast to int and back without problem.
>
>OK, can I interpret what you're saying is that
>I don't need 32-bit pointers (but I do get a lot
>of 64-bit pointers <-> 32-bit ints warnings)? 
>
>That's really all I want---to store a pointer in an int, convert it
>back, and have it work.
>
>Brad


(shudder)  that's a bad scene.  Casting pointers to int's is always a bad
idea.  Casting pointers to ints on a system with 64 bit pointers is a
REALLY bad idea.  Sorry I don't have any useful answers for you except that
your code will be better in the long run if you don't cast from pointer to
int and back. 

Casey


More information about the Gcc mailing list