Does anyone can explain me ?

Status
Not open for further replies.

ZERS

New Member
Hi,

I've started to read a book regarding PICs.

All programs are developped in Assembly, so that It is possible to manage the memory of the Pic (ORG , EQU commands)

How the memory is managing while developping in C ?

Does the "include" files managing the memory by their own ?

Regards
 
The compiler manages the memory for you. When you declare a variable the compiler gives it a memory location. The compiler also manages the program stack (a temporary storage area). By using C you free yourself from managing memory manually.

If you are talking about the malloc function you have to include a special library for it. Dynamic memory allocation doesn't work very well on embedded systems. It tends to be slow and ineficient.

Brent
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…