Re: [Sdcc-user] can sdcc PIC14 generate code which can load value from ROM(placed for idata directive) to RAM in startup?

2012-12-21 Thread Borut Ražem
> if have Where is the source code doing this LOAD? > if not ,How can i do this? See device/lib/pic14/libsdcc/idata.c > Another, in SDCC PIC14 the *pic16f887.lib* doing what? > and how it come from? how can i compile to get it by myself? > What does it contain? See device/non-free/lib/pic14/lib

Re: [Sdcc-user] can sdcc PIC14 generate code which can load value from ROM(placed for idata directive) to RAM in startup?

2012-12-21 Thread feqin fan
I have found the file, but how the compiler automatically insert into the ASM file? I compiled the sdcc in the VS10.0 by myself. I have read a lot of the source code. So please tell me more details.. And how can I get a right version that can generate the load code(using the idata.c) before startup

Re: [Sdcc-user] can sdcc PIC14 generate code which can load value from ROM(placed for idata directive) to RAM in startup?

2012-12-21 Thread feqin fan
I compiled the sdcc using Microsoft VS10.0 by myself. 2012/12/21 feqin fan > I have found the file, but how the compiler automatically insert into the > ASM file? > I compiled the sdcc in the VS10.0 by myself. > I have read a lot of the source code. So please tell me more details.. > And how can

Re: [Sdcc-user] can sdcc PIC14 generate code which can load value from ROM(placed for idata directive) to RAM in startup?

2012-12-21 Thread Borut Ražem
On 21. 12. 2012 11:02, feqin fan wrote: I have found the file, but how the compiler automatically insert into the ASM file? It doesn't. The idata.o, included in sdcc.lib, is linked with your program by gplink during the linking phase. Compiling the c program is actually done is several steps:

Re: [Sdcc-user] can sdcc PIC14 generate code which can load value from ROM(placed for idata directive) to RAM in startup?

2012-12-21 Thread feqin fan
Well, I understand. Thanks, very much. :-) 2012/12/21 Borut Ražem > On 21. 12. 2012 11:02, feqin fan wrote: > > I have found the file, but how the compiler automatically insert into the > ASM file? > > > It doesn't. The idata.o, included in sdcc.lib, is linked with your program > by gplink d

[Sdcc-user] how to create a .lib library file just like the libsdcc.lib?

2012-12-21 Thread feqin fan
Hello. just like the title,how to create a .lib library file like the libsdcc.lib? did not using ar or sdcclib. My machine is using the Windows XP. in the manual said "see the documentation for the assembler and linkage editor (which are in /share/sdcc/doc) for how to create a .lib library file."

Re: [Sdcc-user] how to create a .lib library file just like the libsdcc.lib?

2012-12-21 Thread feqin fan
I have read the source code sdcclib.c, gplink can read the .lib file that did not generated by gplib? sdcclib.c cannot generate the .lib file with the header "!\012" . I'm sorry to trouble you again. 2012/12/21 feqin fan > Hello. > just like the title,how to create a .lib library file like th

Re: [Sdcc-user] how to create a .lib library file just like the libsdcc.lib?

2012-12-21 Thread Raphael Neider
Hi, gplib from gputils is the tool to use to create libraries for PIC targets, see http://gputils.sourceforge.net/gputils.pdf, Chapter 4. Best regards, Raphael On Fri, Dec 21, 2012 at 4:37 PM, feqin fan wrote: > I have read the source code sdcclib.c, gplink can read the .lib file that > did no

Re: [Sdcc-user] how to create a .lib library file just like the libsdcc.lib?

2012-12-21 Thread feqin fan
Thanks. but I know this, I just want to create the .lib file, and use the sdcc cpmpile the C source to PIC assembler file. I only use the PIC14 PORT. 2012/12/22 Raphael Neider > Hi, > > gplib from gputils is the tool to use to create libraries for PIC targets, > see http://gputils.sourceforge

Re: [Sdcc-user] how to create a .lib library file just like the libsdcc.lib?

2012-12-21 Thread Caio Rodrigues
1. First : You need to create the object files , let's say we are using pic 18f mcu By $sdcc -V --vc --debug -mpic16 -p18f4550 --use-non-free -I/. -L/. -c delay.c $sdcc -V --vc --debug -mpic16 -p18f4550 --use-non-free -I/. -L/. -c default.c It's create delay.o and default.o After: *g