Re: [Sdcc-user] confuse icode

2011-04-21 Thread duck donal
Hi Jan, Thank you for your information! It has helped me a lot,I'll look into it in detail. But it seems a little less, do you have any other information that may help me? Thanks! 2011/4/21 Jan Waclawek > Have a look at sdcc.sf.net->wiki->SDCC internals and porting->compilation > flow.

[Sdcc-user] confuse icode

2011-04-20 Thread duck donal
Hi All, In order to identify assembly code output function, I have tracked the sdcc source for a few days. So far, what I know is that the yyparse() function parsing the c code and the glue() function to generating the assembler code. But,I can't figure out where the icode generated, ho

[Sdcc-user] make CFLAGS error

2011-04-08 Thread duck donal
Hi, In order to track the SDCC source code by using GDB, thus I want to recompile the SDCC source code without optimization. There comes the question,when I make the source with the command:make CFLAGS='-g -gstabs',the terminal print out some uncertain errors,such as ../../../sdcc/

Re: [Sdcc-user] error 2:Initializer element is not constant?

2011-03-23 Thread duck donal
codes and fills up all address references. > > SDCC and GCC are similar as far as this behaviour is concerned. > However the final executable of SDCC runs on 8051 while that of GCC > runs on x86 machine. > > Krish > > On Wed, Mar 23, 2011 at 11:43 AM, duck donal > wr

Re: [Sdcc-user] error 2:Initializer element is not constant?

2011-03-23 Thread duck donal
to generate the .hex file? 2011/3/23 roelof 't Hooft > Hi Donald, > > On Wed, 2011-03-23 at 14:13 +0800, duck donal wrote: > > Hi,Krish > > Thank you so much for answering my questions detailedly! > > Krish does a much better job in explaining then I do, I can

Re: [Sdcc-user] error 2:Initializer element is not constant?

2011-03-22 Thread duck donal
x34; > >f_wr_dataM2=0x56; > >f_wr_dataL=0x78; > >f_rw=0x01; > >f_work=0x01; > >while(PSW_1==0) > > f_work=0x00; > > }o > > I use PSW.1 instead of PSW_1,the SDCC give me a syntax error: token &g

Re: [Sdcc-user] error 2:Initializer element is not constant?

2011-03-22 Thread duck donal
; > > #include <8051.h> > > > > void main (void) > > { > > P2_3 = 0; // P2_0 is the first bit of port 2 > > } > > > > This is not standard C. Thus Keil and SDCC may follow different > > conventions. > > > >

Re: [Sdcc-user] error 2:Initializer element is not constant?

2011-03-22 Thread duck donal
not very detailed to the introduction of the internal so,could u give me some material,such as SDCC compile flow,Whether the SDCC have intermediate language,what is the difference between SDCC with GCC Thanks! Donald 2011/3/22 roelof 't Hooft > On Tue, 2011-03-2

[Sdcc-user] error 2:Initializer element is not constant?

2011-03-21 Thread duck donal
Hi All, I'm a newbie for sdcc. A few days ago, I was in use of SDCC, ran into a problem. Program (bee.c) is very simple, as follows: #include #include sbit P10=P1^0; sbit P17=P1^7; int main(void) { unsigned char j; unsigned int i; while