This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

How to make the address of varients are assigned immediately in the memory?


Hi,gcc groups:
    what configurations or options can make the compiler assigned sequential memory for short and long type data defined immediatly.
    For instance, I defined a structure {short,long ,short,short},if I only use gcc to compile the c file.
the memory size of the struture is 12 bytes, not 10 bytes. This means the memory block is not full occupied. How can I make it full occupied.
 
Best Regards!
Elva Wang

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]