Re: [Sdcc-user] SDCC and PIC18F12220

2012-11-12 Thread Diego Herranz
"Downgrading sdcc will work. But I would recommend upgrading gputils instead." Absolutely. There have been a lot of bug fixes and improvements for PIC port since 2.9.0. On Mon, Nov 12, 2012 at 11:58 AM, Philipp Klaus Krause wrote: > On 12.11.2012 11:54, Soloviov Dmitry wrote: > > Thank you! >

Re: [Sdcc-user] SDCC and PIC18F12220

2012-11-12 Thread Philipp Klaus Krause
On 12.11.2012 11:54, Soloviov Dmitry wrote: > Thank you! > > Well, I've just tested SDCC 2.9 with gplink 0.13.7. It's compiled just fine! > > There's output log: > at 1: warning 117: unknown compiler option '--use-non-free' ignored > message: using default linker script "/usr/share/gputils/lkr/18

Re: [Sdcc-user] SDCC and PIC18F12220

2012-11-12 Thread Soloviov Dmitry
Thank you! Well, I've just tested SDCC 2.9 with gplink 0.13.7. It's compiled just fine! There's output log: at 1: warning 117: unknown compiler option '--use-non-free' ignored message: using default linker script "/usr/share/gputils/lkr/18f1220.lkr" + "/usr/bin/sdcpp" -nostdinc -Wall -Dpic18f1220

Re: [Sdcc-user] SDCC and PIC18F12220

2012-11-12 Thread Philipp Klaus Krause
On 12.11.2012 11:22, Soloviov Dmitry wrote: > Thank you for reply! > > So, how that may be: crt0i is part of SDCC and gplink (called from SDCC) > can't find them? > Can this happens in case of missing compiled crt0? > $ find /usr -type f -name 'crt0i.o' > nothing found > Is this some hidden part

Re: [Sdcc-user] SDCC and PIC18F12220

2012-11-12 Thread Soloviov Dmitry
 Thank you for reply! So, how that may be: crt0i is part of SDCC and gplink (called from SDCC) can't find them?Can this happens in case of missing compiled crt0?$ find /usr -type f -name 'crt0i.o'nothing foundIs this some hidden part of SDCC install beyond configure/make/make install to compile add

Re: [Sdcc-user] SDCC and PIC18F12220

2012-11-12 Thread Diego Herranz
Yes, crt0i initializes variables, stack, etc and calls main(). You can see what it does more in detail here: http://sdcc.svn.sourceforge.net/viewvc/sdcc/trunk/sdcc/device/lib/pic16/startup/crt0i.c?view=markup . Just an offtopic comment: I would write void main(void) instead of void main(). On M

Re: [Sdcc-user] SDCC and PIC18F12220

2012-11-12 Thread Soloviov Dmitry
BTW, gputils installed as distro package (apt-get install blah-blah) $ gplink -v gplink-0.13.7 beta What is crt0i ? Is it something like bootstrap object to really call main()? -- Everyone hates slow websites. So do we.

Re: [Sdcc-user] SDCC and PIC18F12220

2012-11-12 Thread Soloviov Dmitry
Thanks for reply! That's better now, but I'm still frustrated.. $ sdcc -mpic16 -p18f1220 -V --use-non-free test1.c + /usr/local/bin/sdcpp -nostdinc -Wall -Dpic18f1220 -D__18f1220 -D__SDCC_PIC18F1220 -DSTACK_MODEL_SMALL -D__STACK_MODEL_SMALL -obj-ext=.o -D__SDCC_USE_NON_FREE -DSDCC_USE_NON_FREE -

Re: [Sdcc-user] SDCC and PIC18F12220

2012-11-12 Thread Kustaa Nyholm
On 12.11.2012 9.58, "Soloviov Dmitry" wrote: >Hello! > >I've just installed latest version of SDCC and want to compile some >simplest possible program like > >#include > >void main() { >while (1) { >TRISB = 0; >PORTB = 19; >} >} > >with SDCC 3.2.1

Re: [Sdcc-user] SDCC and PIC18F12220

2012-11-12 Thread Vaclav Peroutka
Hi Dima, can you try --use-non-free parameter for sdcc during compilation ? Is it better now ? Vaclav "Hello! I've just installed latest version of SDCC and want to compile some simplest  possible program like #include  void main() { while (1) { TRISB = 0;

[Sdcc-user] SDCC and PIC18F12220

2012-11-12 Thread Soloviov Dmitry
Hello! I've just installed latest version of SDCC and want to compile some simplest possible program like #include  void main() { while (1) { TRISB = 0; PORTB = 19; } } with SDCC 3.2.1 sdcc -mpic16 -p18f1220 -V test0.c But this message occurs: +