N
Nehil
can i find about following 2 things, by providing my own API of
functions for a C program :
1) static, global and const section of variables (pointers only), and
to pickout only those which are dynamically allocated.
2) Local variable which are pointers and have dynamically allocated
memory.
Actually, i want to develop an API, which will help in collection
garbage in C program. i.e. programmer will not explicitely call free()
function. The algorithm choosen is : Mark & Sweep.
if somehow i get the info about above mentioned points, the path
further will be easier for me.
I'm concentrating on pointer variables only, as they only can be
allocated memory dynamically. (plz correct me if i'm wrong).
please tell me, if i'm on wrong path. and if i'm not , plz tell me
how to proceed to get information about dynamically allocated memory.
functions for a C program :
1) static, global and const section of variables (pointers only), and
to pickout only those which are dynamically allocated.
2) Local variable which are pointers and have dynamically allocated
memory.
Actually, i want to develop an API, which will help in collection
garbage in C program. i.e. programmer will not explicitely call free()
function. The algorithm choosen is : Mark & Sweep.
if somehow i get the info about above mentioned points, the path
further will be easier for me.
I'm concentrating on pointer variables only, as they only can be
allocated memory dynamically. (plz correct me if i'm wrong).
please tell me, if i'm on wrong path. and if i'm not , plz tell me
how to proceed to get information about dynamically allocated memory.