We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I want to know about memory leaks 1)what are memory leaks 2)how you handle memory leaks in C programming using keil compiler. 3)please can anybody provide me the complete documentation about handling memory leaks using keil compiler? 4)what are different possible cases a memory leaks can occur in a C programming and how to overcome them. 5)what are the necessary steps to be taken when programming to avoid such bugs(memory leaks)
You do know that most universities and other schools have special software that scans forums for people who try to "offload" their school assignments?
Getting caught is not something to look forward to! In best cases (for you), you will only be forced to stay away from the school for a couple of weeks. But, you may be kicked out too...
Remember that Google is very efficient, and your questions will match, if your teacher does a scan of his questions!
Maybe not necessary, but certainly sufficient: just don't use dynamic memory allocation. Especially on an 8051!
The problem with garbage collection is that it solves only one small fraction of resource acquisition and release problems. The programmers that can't eliminate memory leaks from their code without a GC are also the ones that deadlock the system because they can't release semaphores or halt the system because they forget to unmask interrupts.
GC should be a component of a system that you add or not, as suits the problem.