Re: Can the size of pointers to data and text be different?

2011-05-13 Thread David Brown
On 12/05/2011 17:24, fanqifei wrote: I am using gcc4.3.2. In our microcontroller, move instruction(mov reg, imm) can accept 16bits and 32bits immediate operand. The data memory size is less than 64KB, however, code memory size is larger than 64KB. The immediate operand may be addresses of variabl

Re: Can the size of pointers to data and text be different?

2011-05-12 Thread Ian Lance Taylor
fanqifei writes: > I am using gcc4.3.2. > In our microcontroller, move instruction(mov reg, imm) can accept > 16bits and 32bits immediate operand. > The data memory size is less than 64KB, however, code memory size is > larger than 64KB. > The immediate operand may be addresses of variables in da

Can the size of pointers to data and text be different?

2011-05-12 Thread fanqifei
I am using gcc4.3.2. In our microcontroller, move instruction(mov reg, imm) can accept 16bits and 32bits immediate operand. The data memory size is less than 64KB, however, code memory size is larger than 64KB. The immediate operand may be addresses of variables in data sections and function pointe