structure size and structure element offset calculation issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi all,

I am using cross compiler ( gcc 4.3.4) ported for custom processor.
I have observed strange issue.
same structure is used in different files and both the files are compiled with same compilation options. But the structure size and structure element offset are generated differently (identified while analysing assembly code). If the structure is packed then code generated to handle that structure is similar in both the files. But code size was increased (due packed structure).

What could be the reason for this issue ?
Please help me to resolve this issue.

Thanks,
Siva Prasad





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux