This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: 32 bit pointers on Alpha Linux?
- To: Brad Lucier <lucier at math dot purdue dot edu>
- Subject: Re: 32 bit pointers on Alpha Linux?
- From: Casey Cady <casey at sarahandcasey dot com>
- Date: Thu, 09 Mar 2000 18:31:14 -0800
- Cc: lucier at math dot purdue dot edu (Brad Lucier), gcc at gcc dot gnu dot org
- References: <20000309171719.B4731@cygnus.com>
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