From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: Ada Pointer Size Problem
Date: Thu, 21 Oct 2004 11:54:38 +0200
Date: 2004-10-21T11:54:38+02:00 [thread overview]
Message-ID: <3606460.DgU2jkzDGy@linux1.krischik.com> (raw)
In-Reply-To: gHEdd.2724$%h1.850@newsread3.news.pas.earthlink.net
Jeffrey Carter wrote:
> Dave Thompson wrote:
>
>> On Mon, 11 Oct 2004 05:18:58 GMT, Jeffrey Carter <spam@spam.com>
>> wrote:
>>>
>>> In C/++, a pointer is an int is an address. In Ada, they're 3
>>> different things.
>>
>> But (unlike its predecessor B) a C pointer/address is not just an
>> int.
>
> I meant that a pointer is an int because you can always convert/assign a
> pointer to an int.
Not on a 64 bit CPU. Most 64bit compiler have not expanded int to 64 bit (as
they should have done). Only "intptr_t" and "uintptr_t" are large enough to
store a pointer.
If you use MS-C then activate /W64 and see what happens.
With Regards
Martin
--
mailto://krischik@users.sourceforge.net
http://www.ada.krischik.com
next prev parent reply other threads:[~2004-10-21 9:54 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-10 19:50 Ada Pointer Size Problem skidmarks
2004-10-11 1:38 ` Stephen Leake
2004-10-12 18:44 ` skidmarks
2004-10-13 1:23 ` Jeffrey Carter
2004-10-13 8:07 ` Martin Krischik
2004-10-13 16:27 ` Jean-Pierre Rosen
2004-10-11 5:18 ` Jeffrey Carter
2004-10-21 1:16 ` Dave Thompson
2004-10-21 1:56 ` Jeffrey Carter
2004-10-21 9:54 ` Martin Krischik [this message]
2004-10-22 1:09 ` Jeffrey Carter
2004-10-22 7:48 ` Martin Krischik
2004-10-22 9:41 ` Adrien Plisson
2004-10-22 16:50 ` Warren W. Gay VE3WWG
2004-10-24 16:05 ` Martin Krischik
2004-10-23 1:35 ` Jeffrey Carter
2004-10-24 15:52 ` Martin Krischik
2004-10-22 5:41 ` Simon Wright
2004-10-22 18:05 ` Mark Lorenzen
2004-11-01 8:14 ` Dave Thompson
2004-10-11 8:45 ` Martin Krischik
[not found] ` <1c2f5137.0410130505.57e03c@posting.google.com>
2004-10-13 13:37 ` Dmitry A. Kazakov
2004-10-14 3:46 ` Steve
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox