Hello all :

I use the TCC.exe in windows , found a problem as this:

typedef struct A_TAG A;
struct A_TAG
{
short type ; 
long file; 
..........
} ;


A a ;
A *p_a ;

p_a = &a ;

when &a address is 100 ,the sizeof a.type is 2 , so the p_a->file address 
should be 100+2 = 102 ,but I found it is 104 , when I modify the code as :

struct A_TAG
{
short type ; 
short file; 
..........
} ;


I found the p_a->file address becomes 102 ;

can anybody told me why?

think you

btw , tcc is a very very very good compiler!!!!! :)





















 
 
 
_______________________________________________
Tinycc-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to