A Garbage Collector for the GNUNYU Ada Translator GNAT PowerPoint PPT Presentation

presentation player overlay
1 / 1
About This Presentation
Transcript and Presenter's Notes

Title: A Garbage Collector for the GNUNYU Ada Translator GNAT


1
A Garbage Collector for the GNU/NYU Ada
Translator (GNAT)
What is garbage collection? ? the automated
reclamation of inaccessible, dynamically allocate
d ("heap") memory Whenever a statement such
as my_data malloc(sizeof(data_t)) is executed
in C, or my_data new data_t is executed in
Ada, memory is allocated on the heap. When a
statement such as my_data NULL is executed,
this memory is not freed. However, if no other
pointer to this memory exists, the allocated
memory becomes inaccessible. ? A garbage
collector periodically searches for such
inaccessible memory and automatically frees it.
David OShea Student number 341595964 Supervisor
Dan Johnston
Write a Comment
User Comments (0)
About PowerShow.com