Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: memory allocation
PostPosted: Tue Jul 28, 2009 9:45 pm 
Offline

Joined: Fri Jul 10, 2009 8:16 pm
Posts: 15
I'm using the AT91SAM7X micro-controller.

I need to know how to allocate memory, something similar to malloc().

Thanks in advance.

Regards,
Dor.


Top
 Profile  
 
 Post subject: Re: memory allocation
PostPosted: Sat Aug 01, 2009 1:15 pm 
Offline

Joined: Thu Mar 02, 2006 1:32 pm
Posts: 127
Location: Switzerland
Hi Dor

malloc(), free() etc. are included in the library files with your compiler so you should be able to use these if required.

Alternatively look at the uTasker project (http://www.uTasker.com) since it includes [i]uMalloc()[/i] which is a zero overhead memory allocater. Since much memory use in small footprint embedded systems is preferably of static nature (to avoid memory holes potentially causing system failure) this enables malloc() type dynamic allocation with static characteristics. It can however be run together with the library memory allocation (to have the best of both worlds).

Regards

Mark


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


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: