Re: [Sdcc-user] pic16 without stack

2010-08-25 Thread Theblond
Hello, for this reason, I try to avoid parameters in function calls. The think I do not understand, the allocation of temporary storage. Sometimes there is absolutely no need for the, but are allocated anyway. Theblond Sébastien Lorquet írta: > hello, > > I have a question about something I di

Re: [Sdcc-user] pic16 without stack

2010-08-25 Thread KHMan
On 8/25/2010 9:11 PM, Sébastien Lorquet wrote: > I'm not here to teach you the pic16 instruction set but yes, movff > is a 2-words instructions that copies a file register into another > without going through Wreg. > > for your information, pic16 is the architecture of the PIC18XXX > microcontrolle

Re: [Sdcc-user] pic16 without stack

2010-08-25 Thread Sébastien Lorquet
I'm not here to teach you the pic16 instruction set but yes, movff is a 2-words instructions that copies a file register into another without going through Wreg. for your information, pic16 is the architecture of the PIC18XXX microcontrollers. PIC16FXXX have a pic14 architecture. sebastien On We

Re: [Sdcc-user] pic16 without stack

2010-08-25 Thread KHMan
On 8/25/2010 8:03 PM, Sébastien Lorquet wrote: > > With the pic16, we automatically have a stack. The resulting code > is huge. > [snip] > > This is a very big overhead. and every movff counts for 2 > instructions. > [snip] You are saying MOVFF is a PIC16 instruction? -- Cheers, Kein-Hong Man (e

[Sdcc-user] pic16 without stack

2010-08-25 Thread Sébastien Lorquet
hello, I have a question about something I didn't find in the manual. With the pic16, we automatically have a stack. The resulting code is huge. char foo(char c, char d) { return c+d; } generates: ; ; Starting pCode block S_main__foocode _foo: ;.line81; main.cchar foo(char c, ch