Mem usage on AVR?

From: Michael Dombrowski (legodudenein_at_hammycorp.com)
Date: 07/14/04


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



Relevant Pages

  • Re: Q: too much data too little memory
    ... with a large chunk of data that does not fit into all the ... | physical memory available to a computer, is it better, to run one process ... If your machine has enough physical RAM to actually swap in all of the ...
    (comp.unix.programmer)
  • Re: "Program too big to fit in memory". Urgent please help
    ... 'Program too big to fit into memory' ... I used to keep all the Installers in a folder for future use. ... The files in the `Installers' folder on my hard disk were readble but I forgot to take another backup. ...
    (microsoft.public.windowsxp.general)
  • Re: Fastcode - Alternative SZ IntToStrB&V v0.09
    ... Be aware that data need to fit in phisical memory during ... Preparing space to store report data before stat of benchmark to ... > avoid problem with fragmentation ...
    (borland.public.delphi.language.basm)
  • Re: Hash table performance
    ... On Sat, 21 Nov 2009, Patricia Shanahan wrote: ... ratio for the same job: ... I suspect possibly memory issues. ... If the .NET table is more compact, because of using primitives, it might fit into a level in Jon's computer's memory hierarchy that the Java Hashtable does not fit. ...
    (comp.lang.java.programmer)
  • Re: Questions about Minix
    ... So high that I don't fit twice in memory. ... Only, instead of duplicating the pages as they are written, the data segment ... The only problem would be if the parent process wrote something in the ...
    (comp.os.minix)