Thread: Malloc?
View Single Post
  #2   Spotlight this post!  
Unread 01-02-2007, 22:00
MikeDubreuil's Avatar
MikeDubreuil MikeDubreuil is offline
Carpe diem
FRC #0125 (Nu-Trons)
Team Role: Engineer
 
Join Date: Jan 2003
Rookie Year: 1999
Location: Boston, MA
Posts: 967
MikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond repute
Send a message via AIM to MikeDubreuil
Re: Malloc?

I don't have an implementation for you but I will caution you against using malloc. In general, using malloc in an embedded software design is perilous at best and just plain wrong at worst. Mainly because in an embedded application you should keep a tight check on how much RAM your design uses. When there's not a lot available you have to ration the goods. If I were you I would try a different design to accomplish the task.
__________________
"FIRST is like bling bling for the brain." - Woodie Flowers