Re: [Sdcc-user] pic18f --ivt-loc and crt

2006-10-13 Thread Ernst Bachmann
On Friday 13 October 2006 00:11, Marius Kintel wrote: > Hi, > > I'm trying to find a convenient way to relocate interrupt vectors to > allow for a bootloader to be placed at 0x. The bootloader in > question is the USB bootloader from Microchip. This bootloader lives > in 0x-0x07ff and calls

Re: [Sdcc-user] pic18f --ivt-loc and crt

2006-10-13 Thread Marius Kintel
On 13. okt. 2006, at 11:30, Ernst Bachmann wrote: > I'm using that bootloader with sdcc-compiled code, here's what I did: > > - add a local copy of the crt0*.c file to your project. > Thanks for the feedback. This is exactly what I resorted to in the end - it just feels a little hackish (but t

Re: [Sdcc-user] pic18f --ivt-loc and crt

2006-10-13 Thread Ernst Bachmann
On Friday 13 October 2006 12:09, Marius Kintel wrote: > > I'm using that bootloader with sdcc-compiled code, here's what I did: > > > > - add a local copy of the crt0*.c file to your project. > > Thanks for the feedback. This is exactly what I resorted to in the > end - it just feels a little hack

Re: [Sdcc-user] Attempt to write to invalid file register

2006-10-13 Thread Raphael Neider
Hi Pete, > > Also check if you ran out of memory (consult the .map file, gplink -m). > > Hmm, I'm not really sure how to know, I'm not familiar with map files. > I'm wondering if stuff (ie functions) are being linked in that are not > being used, but then that could be my poor grasp of map fi

[Sdcc-user] Memory allocaton for pointer arguments

2006-10-13 Thread Felix Brack
Hello, For an mcs51 target I'm using sdcc 2.6.0 now. After linking a project the linker tells me that there is not enough space in DATA memory. No problem, I just moved some symbols to XDATA. While doing so I found that the linker is allocating lots of memory in DATA just for functional parameters

Re: [Sdcc-user] Memory allocaton for pointer arguments

2006-10-13 Thread Frieder Ferlemann
Hi Felix, Felix Brack schrieb: > Here is the command line I use for sdcc: > > sdcc --model-large --xram-loc 0x0800 --code-loc 0x2000 --data-loc 0x30 > --idata-loc 0x30 -Wl -bBSEG=0x30 --iram-size 0x100 --no-pack-iram > --debug ./build/stm.rel ... sorry that this is unrelated to your

[Sdcc-user] Using the Microchip CDC firmware with SDCC

2006-10-13 Thread Marius Kintel
Hi, As part of my plan to move from proprietary compilers to SDCC, I need to get some code using Microchip's CDC firmware to compile with SDCC. There has been some requests for a SDCC port of this firmware earlier, and rumors that someone is working on it. Does anyone know about this? An