It is currently Wed Jul 06, 2011 8:19 pm

All times are UTC - 8 hours




 Page 1 of 1 [ 6 posts ] 
Author Message
 Post subject: Low memory tips?
PostPosted: Sat Feb 19, 2011 2:21 am 

Joined: Fri Feb 18, 2011 3:41 pm
Posts: 6
There doesn't seem to be much memory available to our programs. I can't declare a static variables larger than about 2KB before I start getting errors like:

/home/ubuntu/arm-2010q1/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/bin/ld: build/pulse_app section `.bss' will not fit in region `ram'
/home/ubuntu/arm-2010q1/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/bin/ld: region `ram' overflowed by 317 bytes


Is there any way to tweak the memory to free up a bit more of the 8KB for static variables?

Thanks.


Offline
 Profile  
 
 Post subject: Re: Low memory tips?
PostPosted: Sat Feb 19, 2011 4:32 pm 
User avatar

Joined: Tue Feb 15, 2011 1:00 am
Posts: 60
RAM usage is determined by which OS calls are made to some degree. For example, if you pull in the text rendering stuff, that will take some RAM.

Much of the ram is being used by the bluetooth stack and OS. Though we haven't tweaked it significantly to reduce the memory footprint. 2kB should be enough for everyone! =D

What are you trying to do that requires > 2kB of RAM or are you just trying to find the limits?


Offline
 Profile  
 
 Post subject: Re: Low memory tips?
PostPosted: Sat Feb 19, 2011 5:06 pm 

Joined: Fri Feb 18, 2011 3:41 pm
Posts: 6
Jon wrote:
RAM usage is determined by which OS calls are made to some degree. For example, if you pull in the text rendering stuff, that will take some RAM.

Much of the ram is being used by the bluetooth stack and OS. Though we haven't tweaked it significantly to reduce the memory footprint. 2kB should be enough for everyone! =D

What are you trying to do that requires > 2kB of RAM or are you just trying to find the limits?


I'm trying to represent a full screen Game of Life board. I think I can work around not being able to have two full board states in memory though.


Offline
 Profile  
 
 Post subject: Re: Low memory tips?
PostPosted: Sat Feb 19, 2011 5:22 pm 

Joined: Tue Feb 15, 2011 6:42 pm
Posts: 26
Location: Ontario, Canada
tlrobinson wrote:
I'm trying to represent a full screen Game of Life board. I think I can work around not being able to have two full board states in memory though.


Ah that's a cool idea! I'm a big fan of GoL implementations. :)


Offline
 Profile  
 
 Post subject: Re: Low memory tips?
PostPosted: Sun Feb 20, 2011 8:10 pm 

Joined: Fri Feb 18, 2011 3:41 pm
Posts: 6
Stephanie wrote:
tlrobinson wrote:
I'm trying to represent a full screen Game of Life board. I think I can work around not being able to have two full board states in memory though.


Ah that's a cool idea! I'm a big fan of GoL implementations. :)


Got it working, will post code later. In the meantime here's a video: http://yfrog.com/9go4cz


Offline
 Profile  
 
 Post subject: Re: Low memory tips?
PostPosted: Sun Feb 20, 2011 10:20 pm 
User avatar

Joined: Tue Feb 15, 2011 1:00 am
Posts: 60
Very cool!
I like it.


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 6 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: