reading legacy floppy disks

Seneca Cunningham tentra-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Sun Sep 10 14:57:25 UTC 2006


On 10-Sep-2006, at 04:09 :09, John Macdonald wrote:

> On Sat, Sep 09, 2006 at 11:33:58PM -0400, Christopher Browne wrote:
>> The sizes of char/short/int/long are not required to be any  
>> particular
>> size in the standard.  If memory serves, the relationship needs to
>> hold that:
>>
>>  sizeof(char) <= sizeof(short) <= sizeof(int) <= sizeof(long)
>>
>> But having 8 bit ints *is* consistent with...
>>
>>    8 <= 8 <= 8 <= 16
>
> But it is not consistant with the other rule about the
> size of an int - an int has to have enough bits to
> hold a pointer.  For any machine with more than 256
> addressable units, an 8-bit int doesn't work.

What rule?  I've dealt with systems that are ILP32 and LP64 (which  
one is determined by compiler flags).  AIX is one of them, and if my  
recollections of porting are correct, Linux on AMD64 is another.  The  
assumption that many 32-bit developers seem to hold that an int is  
the same width as a pointer causes porting delays.

-- 
Seneca Cunningham
tentra-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org



--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wini/Mailing_lists





More information about the Legacy mailing list