Get the latest tech news
reftrack-plugin – plugin for GCC that tracks references to allocated objects
GCC plugin for C language that tracks references to allocated objects - acbits/reftrack-plugin
reftrack is a GCC plugin for C language that tracks references to allocated objects though it could be used for other purposes by writing custom functions. The plugin transforms the original C code wherever it encounters statements involving pointers to structures that have the reftrack attribute applied to them. One of the motivation behind the development of this plugin is to implement garbage collection for the C programming language that is natively supported by the compiler.
Or read this on Hacker News