representation of struct field offsets

Mark Mitchell mark@codesourcery.com
Thu Sep 28 22:41:00 GMT 2006


Chris Lattner wrote:

>> Also, because of GCC's internal representation of integers, you have 
>> to be careful that you have enough bits; for example, you need 72 bits 
>> to represent things in a 64-bit address space.
> 
> Actually, just 67, right?  Does GCC support structures whose size is 
> greater than 2^61 ?

I'm not sure -- but if it doesn't, it should.  There are folks who like 
to make structures corresponding to the entire address space, and then 
poke at particular bytes by using fields.

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



More information about the Gcc mailing list