Re: structure size and structure element offset calculation issue

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

 



On 19 May 2014 13:28, Sivaprasad wrote:
> Hi Jonathan Wakely,
>
> Thanks for quick reply.
>
> Structure is included from same header file,So there is no difference in
> structure.

You can't conclude that. Defining a macro before including the header
could alter the definition of the structure. A #pragma to turn on
packed structs that comes before the header could alter the
definition.

You need to compare the preprocessed output for the two files.



>How to get information related to alignments from preprocessor
> output.Is there any additional options I need to give apart from "-E".

You can't get that information from the preprocessor, you need to work
it out by hand.




[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