RE: SDCC developer says gputils are broken...
Chen Xiao Fan <[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.gnupic |
|---|---|
| Message-ID | <3B8AEFFADD3DD4118F8100508BACEC2C07F773D9@spex> |
I update my SDCC CVS source and the build process is indeed working quite nicely. Thanks a lot. For PIC14 support, I also follow Martyn Welch's fix for in the "Setting up PIC header files" setion. The URL is again listed here. http://ubicomp.lancs.ac.uk/~martyn/sdcc_linux/ With the latest SDCC and GPUTILS, I can build all the sample programs using the simple command form for both PIC14 and PIC16. Last time, it was broken for PIC14. The warning message is normal since they are not processor specific (hopefully). The hellotty1.c is a simple fix of David McNab's sample program hellotty.c (simply adding "#pragma stack 0x200,64" ) used to be at http://www.freenet.org.nz/sdcc. Regards, Xiaofan --------------------- Sample session: mcuee@ubuntu:~/Desktop/sdcc$ sdcc -v SDCC : pic16/pic14 2.5.2 #1070 (Jul 28 2005) (UNIX) mcuee@ubuntu:~/Desktop/sdcc$ gpasm -v gpasm-0.13.2 beta mcuee@ubuntu:~/Desktop/sdcc$ sdcc -mpic16 -p18f252 wave.c Processor: 18f252 wave.c:25:1: warning: "__18f252" redefined <command line>:1:1: warning: this is the location of the previous definition wave.c:23: warning: setting stack to default size 64 (0x0040) warning: processor mismatch in "/usr/local/bin/../share/sdcc/lib/pic16/crt0i.o" message: using default linker script "/usr/local/share/gputils/lkr/18f252.lkr" mcuee@ubuntu:~/Desktop/sdcc$ sdcc -mpic14 -p16f877 count.c Processor: 16f877 message: using default linker script "/usr/local/share/gputils/lkr/16f877.lkr" mcuee@ubuntu:~/Desktop/sdcc/example$ sdcc -mpic16 -p18f252 hellotty1.c Processor: 18f252 hellotty1.c:15: warning: setting stack to default size 64 (0x0040) warning: processor mismatch in "/usr/local/bin/../share/sdcc/lib/pic16/crt0i.o" message: using default linker script "/usr/local/share/gputils/lkr/18f252.lkr" warning: processor mismatch in "streams.o" warning: processor mismatch in "printf.o" warning: processor mismatch in "vfprintf.o" warning: processor mismatch in "strmputchar.o" warning: processor mismatch in "strmmssp.o" warning: processor mismatch in "strmgpsim.o" warning: processor mismatch in "ltoa.o" warning: processor mismatch in "putchar.o" warning: processor mismatch in "strmusart.o" warning: processor mismatch in "islower.o" warning: processor mismatch in "modulong.o" warning: processor mismatch in "gptrput1.o" warning: processor mismatch in "gptrget2.o" warning: processor mismatch in "gptrput3.o" warning: processor mismatch in "gptrget4.o" warning: processor mismatch in "divulong.o" warning: processor mismatch in "gptrget1.o" warning: processor mismatch in "gptrget3.o" ------------------------------------- -----Original Message----- ... I've worked out what I think is a better build process for sdcc that installs everything properly. Can you can try it out for me ? I've used it on a couple of my machines so far and it's worked fine. I think the comments in David's HowTo about manually moving some files at the end are now wrong because it seems the make files have been improved to do it all automatically now. BUT I've not tested all the libs yet. ./configure --disable-mcs51-port --disable-gbz80-port --disable-z80-port --disable-avr-port --disable-ds390-port --disable-ds400-port --disable-hc08-port --disable-xa51-port make su -c "make install" cd device/lib/pic16/ ./configure make make lib-io cd .. make model-pic16 su -c "make install" Peter