Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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.

Latest threads

New Articles From Microcontroller Tips

Back
Top