From: Raphael N. <ne...@te...> - 2005-05-03 22:40:58
|
Hi Daryl, > I'm just starting out with sdcc for the pic. I'm getting the above > warning when compiling a very simple program. Is that normal? > sdcc -mpic16 -p18f1220 test.c > Processor: 18f1220 > warning: processor mismatch in > "/home/daryl/local/bin/../share/sdcc/lib/pic16/crt0i.o" Yes, that's annoying but normal. The libraries (especially the init-code in crt=.o) are compiled for the pic18f452 because the libraries only access pins/ports vailable in all PIC16s (the 452 is just small enough not to introduce ports other PICs don't have). Actually, the warning is not emitted by SDCC -- its the linker (gputils' gplink) that emits it (gputils/gplink/gplink.c:61). > message: using default linker script > "/home/daryl/local/share/gputils/lkr/18f1220.lkr" This message can be removed by explicitly specifying the linker script using sdcc -Wl,"-s <SCRIPT_TO_USE>" [...] when linking... Regards, Raphael Neider |