avr-libc-dev
[Top][All Lists]
Advanced

[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


From: Joerg Wunsch
Subject: Re: [avr-libc-dev] getting a short interrupt vector table, and PROGMEM vs .init0
Date: Mon, 6 Feb 2012 11:04:17 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

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. ;-)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]