V
vk02720
Hi,
I am trying to implement garbage collection for C/C++ mainly for
learning purpose. I dont know where to start.
For example -
Basic questions - How do I identify the variables that contain pointers
? Where do I look for these variables and how to tell if what is
assigned to them is a pointer ?
Do I need to implement my own API for malloc/free ( or new/delete ) or
can I create a library that can be linked with the given source code
that uses the standard malloc ? Are there any tradeoffs for either
approach ?
Appreciate any pointers to any info on the web or text books etc.
TIA
I am trying to implement garbage collection for C/C++ mainly for
learning purpose. I dont know where to start.
For example -
Basic questions - How do I identify the variables that contain pointers
? Where do I look for these variables and how to tell if what is
assigned to them is a pointer ?
Do I need to implement my own API for malloc/free ( or new/delete ) or
can I create a library that can be linked with the given source code
that uses the standard malloc ? Are there any tradeoffs for either
approach ?
Appreciate any pointers to any info on the web or text books etc.
TIA