avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] question on .bss and global variables


From: Neil Johnson
Subject: Re: [avr-gcc-list] question on .bss and global variables
Date: Wed, 4 Jun 2003 11:51:20 +0100 (BST)

Stefan,

1) which device are you using?

2) pointers are 2-bytes, so your struct is 4 bytes in size.  32 instances
will require 128 bytes of storage.

EEPROM is a completely different memory space, with different access
methods, so you can't just spill variables into it.  If you're running out
of memory, then either rethink your application or change to a device with
more SRAM.

My guess is you are statically allocating more RAM than your target device
has, which is why the linker is complaining, since after it located the
data it then found there was no RAM there to hold it!

Hope this helps,
Neil

--
Neil Johnson :: Computer Laboratory :: University of Cambridge ::
http://www.njohnson.co.uk          http://www.cl.cam.ac.uk/~nej22
----  IEE Cambridge Branch: http://www.iee-cambridge.org.uk  ----



reply via email to

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