Hi Tijl,
It seems that in the src distribution some pic libraries (libdev18f*k22)
> got hidden behind --enable-new-pics configure flag. That wasn't the case
> with 3.2.0.
>
This is intentionally: Major distributions (used to) provide gputils
0.13.7, so that sdcc would default to not target devices that are not
supported by this version to avoid build failures. The option has been
introduced on 2012-04-22, shortly before sdcc 3.1.5. While I do not know if
the device list to be excluded by default is properly maintained, I just
checked the binary release and found that all libraries are included (at
least the 18f*k22 ones you mentioned). So the binary release seems to
complete.
If you have recent gputils installed on your box, you can rebuild sdcc from
source with --enable-new-pics and get support for all devices available in
sdcc. From the information below, I assume you did this ;-)
> I'm also seeing commands like the following with both -p18f2423 and
> -p18f452. Is that correct?
>
> source='adc/adcopen.c' object='libio18f2423_a-adcopen.o' libtool=no \
> DEPDIR=.deps depmode=none /bin/sh ../depcomp \
> '/usr/ports/head/lang/sdcc/work/sdcc-3.3.0/device/lib/pic16//../../../bin/sdcc'
> -DHAVE_CONFIG_H -I. -I.. -I. -I../../../include/pic16
> -I../../../non-free/include/pic16 -I../../device/include
> -I../../device/include/mcs51 -p18f2423 --std-c99
> --asm="'/usr/local/bin/gpasm'" --fomit-frame-pointer --obanksel=9
> --denable-peeps --optimize-cmp --optimize-df --i-code-in-asm -DUSE_FLOATS=0
> -mpic16 -p18f452 -c -o libio18f2423_a-adcopen.o `test -f 'adc/adcopen.c' ||
> echo './'`adc/adcopen.c
>
This is quite normal and due to the way the device specific libraries are
built: The device-specific options are simply prepended to the general
options, the latter include the default target device (-p18f452). The first
-p option is actually used, the later one(s) are ignored by sdcc.
Best regards
Raphael
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user