Re: Xcode 2.0 and 64-bit support
Re: Xcode 2.0 and 64-bit support
- Subject: Re: Xcode 2.0 and 64-bit support
- From: Ken Turkowski <email@hidden>
- Date: Wed, 21 Jul 2004 00:08:53 -0700
Is there a machine- and programming-model-independent way to declare an
integer data type that is the same size as a pointer? I would like to
do pointer arithmetic. I assume that size_t will do it, since
void* malloc(size_t bytes);
It wouldn't make sense to have malloc() only return 4 Gb on a system
that has 64 bit pointers. Yet Paul Sargent's answer to item (5) and (6)
doesn't agree with this.
On Jul 13, 2004, at 10:01 PM, Paul Sargent <email@hidden>
wrote:
I'm not privy to any 'developer' info, but I believe it's been stated
that tiger's 64-bitness is an LP model (i.e. Longs and Pointers are
64-bits) rather than an ILP (Ints, Longs and Pointers are 64-bit)
model.
So that would make
1) yes
2) no, 8
3) not sure, probably yes
4) 8
5) both
6) don't know, we'll have to see. This is API and not compiler.
On 14 Jul 2004, at 01:09, Glen Low wrote:
What kind of 64-bit support is there in Xcode 2.0 and Apple gcc 3.5?
In particular:
1. Is sizeof(int) == 4?
2. Is sizeof(long) == 4?
3. Is sizeof(long long) == 8?
4. Is sizeof(void*) == 4 or 8? Or is there some kind of typedef and/or
funky conversion for 32-bit vs. 64-bit pointer?
5. Is size_t same as unsigned long or unsigned long long?
6. Can we now malloc, vm_alloc, mmap more than 2G at a time i.e. will
those low-level UNIXish API's allow a 64-bit parameter as a size?
--
Ken Turkowski email@hidden
Engineer/Scientist http://www.worldserver.com/turk/
Independent Consultant Industrial Grade Software
Computer Graphics 2D 3D Immersive Imagery
Photo-mosaicing Panoramas Computer Vision
Applied Mathematics Numerical Analysis Optimization
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.