Dear Tamas,

I use piklab software to write my PIC projects. Normally it does all
compilation and links fine.

I invite you to enjoy it too.

I was looking about ande bellow the arguments used by piklab to compile and
link. [NOTES] introduced here to clean my specific files. Please replace by
the yours.

Compiling, it does one of this for each .c file:

sdcc --use-non-free --obanksel=2 --optimize-cmp --optimize-df -mpic16
-p18f24k22 -V --debug -I[MYPJTDIR] -c [eachfile].c


Linking:

sdcc --use-non-free -mpic16 -p18f24k22 -V --debug -Wl-c -Wl-m
-I[MYPJTDIR] -o[OUTHEXFILE].hex
[A LIST WITH ALL THE .o FILES] libc18f.lib libio18f24k22.lib

obviously, the target is a 18F24K22.

I can make some tests for you.


Regards,

*Antonio Augusto Todo Bom Neto
Boole Embedded*


PMI Membership ID: 2548138
Document Freedom Day - Libere os seus documentos
http://documentfreedom.org/ - 27 de Março 2013*
*


2013/3/3 Philipp Klaus Krause <p...@spth.de>

> On 03.03.2013 19:25, Philipp Klaus Krause wrote:
>
> > Sounds like you don't link a crt0.o or not the right crt0.o.
>
> Read crt0.rel for crt0.o.
>
> Philipp
>
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb
> _______________________________________________
> Sdcc-user mailing list
> Sdcc-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sdcc-user
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to