tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] a problem about pointer size


From: oohmail
Subject: [Tinycc-devel] a problem about pointer size
Date: Mon, 12 Nov 2007 12:54:19 +0800 (CST)

 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!!!!! :)




















 
 
 



万 名 青 春 美 少 女 参 加 网 易 校 园 美 女 大 赛 !!>>
reply via email to

[Prev in Thread] Current Thread [Next in Thread]