Mem usage on AVR?
From: Michael Dombrowski (legodudenein_at_hammycorp.com)
Date: 07/14/04
- Next message: Geoff McCaughan: "Re: Embedded contract work wanted."
- Previous message: webmaster: "Re: mainboard lowpower any recomendation wanted"
- Next in thread: Pete Gray: "Re: Mem usage on AVR?"
- Reply: Pete Gray: "Re: Mem usage on AVR?"
- Reply: Grog: "Re: Mem usage on AVR?"
- Reply: Gary Kato: "Re: Mem usage on AVR?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 14 Jul 2004 01:12:04 -0400
Hello All,
I've design my app on a 8515 for ease of debugging and prototyping,
although in terms of code space and pin usage it should fit onto a 2313.
My question though concerns memory usage. In the program I declare an
int array 40 elements, an int array of 79 elements, and 11 other int
variables giving a count of 130bytes of memory used. (I assume I can
simply add it up like this, or am I missing something with regard to my
arrarys, +1byte per array maybe?) Since several of these variables are
being used to store boolean values, I can mesh several of them into one
char and save a couple of bytes of memory. Now my real question is, is
simply counting the bytes like this enough to ensure that my program
will fit into memory? I also have two interrupts and several loops, do
they use up memory (avr-gcc)? Could I do something like assign all the
int varibles to registers and just keep the arrays in memory?
Thanks
Mike
- Next message: Geoff McCaughan: "Re: Embedded contract work wanted."
- Previous message: webmaster: "Re: mainboard lowpower any recomendation wanted"
- Next in thread: Pete Gray: "Re: Mem usage on AVR?"
- Reply: Pete Gray: "Re: Mem usage on AVR?"
- Reply: Grog: "Re: Mem usage on AVR?"
- Reply: Gary Kato: "Re: Mem usage on AVR?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|