mips structure padding
Todd Malsbary
toddm@fullplaymedia.com
Mon Jan 28 22:10:00 GMT 2002
hi, i have a c structure and a c++ class with the same data members and
sizeof returns different sizes for each. i'm wondering exactly why that
occurs. i'm building ecos using gcc 3.0.3 targeted for mips-r3000-elf.
the purpose of the c structure is to allocate some storage for placement
new in c++ land. i can verify that this code works on the arm-elf
target through various versions of gcc and i'm assuming it works for the
other mips targets that ecos runs on. it seems to be confined to the
r3000 target. is this is a bug or a feature? in either case, what
would be the recommended fix? thanks,
Todd
More information about the Gcc
mailing list