Hi,

> I got this from a single .c file witht the added option -V to the  
> compiler.
>
>
>
> + C:\PROGRA~1\gputils\bin\gpasm.exe -c "obj\Release\SDCC_PIC_Using.asm"
> Linking native: bin\Release\SDCC_PIC_test
> message: using default linker script "C:\Program
> Files\gputils\lkr\16f874.lkr"
> warning: relocation of section "UDL_idata_0" failed, relocating to a
> shared memory location
> warning: relocation of section "ID_idata_0" failed, relocating to a
> shared memory location

This is what I meant with -r: allow the use of SHAREBANKs for DATABANKS.
Your PIC seems to have memory that is accessible in multiple/all data
banks. Such memory regions are declared as SHAREBANKs in the linker
script and are not usually used for regular data -- they are used to
implement software stacks or "access banks" like the pic18f* have.

The warnings do not imply any problem (maybe your device is described
using only SHAREBANK entries?) and might well be degraded to mere
informational rather than warning.

> + C:\PROGRA~1\gputils\bin\gplink.exe -I"C:\Program Files\SDCC\lib"
> -I"C:\Program Files\SDCC\lib" -I"C:\Program Files\SDCC\bin\..\lib"
> -I"C:\Program Files\SDCC\bin\..\lib\pic"   -w -r -o
> bin\Release\SDCC_PIC_test   obj\Release\SDCC_PIC_Using.rel  libsdcc.lib
> pic16f874.lib
> Process terminated with status 0 (0 minutes, 4 seconds)
> 0 errors, 0 warnings
>
> There are a lot of -I in the +gplink, do I have to investigate this or...

These paths are generated by sdcc and (after ../ resolution) refer to
the same directory. You need to include only the "actual" path
to the .lib files.

> Could you comment on the two warnigs about the relocation?

See above -- harmless.


Raphael
-- 
Karlsruher Institut für Technologie (KIT)
Institut für Betriebs- und Dialogsysteme (IBDS)

Raphael Neider
Akademischer Mitarbeiter
Am Fasanengarten 5, Geb. 50.34, Raum 161
76131 Karlsruhe

Telefon: +49 721 608-2645
Telefax: +49 721 608-7664
E-Mail: [email protected]
Internet: http://os.ibds.kit.edu/

KIT - Universität des Landes Baden-Württemberg und
nationales Großforschungszentrum in der Helmholtz-Gemeinschaft

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to