[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-libc-dev] getting a short interrupt vector table, and PROGMEM v
Re: [avr-libc-dev] getting a short interrupt vector table, and PROGMEM vs .init0
Mon, 6 Feb 2012 11:04:17 +0100
As Bill Westfield wrote:
> In the case where a size-limited program is only using one interrupt
> (this is "usbtiny" on an ATtiny2313, and avr-gcc 4.3.2), is there a
> good way to get an "abbreviated" vector table instead of having
> vectors for everything?
I think the best way is to clone gcrt1.S into your project, and modify
it to your needs. Make sure to spell the gcrt1.o file as the very
first object file in your (-nostartfiles) linker commandline.
The way Jan Waclawek described might work as well.
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)