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]
Other format: [Raw text]

Re: Where can I find "sizeof" implementation in front end


bjzheng@ict.ac.cn wrote:
> Hello all:
> 
> I am reading codes of gcc front end. But I can not find the implementation
> of "sizeof". How does gcc front end calculate size of UNION and STRUCT?
> Where is the codes for these work. Can anybody give me some advices? Thank
> you so much !

The code is heavily target dependent.  More or less, the whole of
stor-layout.c is devoted to this task.

Paolo


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