Blog Archives

Custom Constructor and Destructor in GCC

The GNU GCC compiler provides a specific attribute to define our own custom constructor and destructor for your C Program. Here is the sample code: [code]#include

Tagged with: ,
Posted in Uncategorized

GNU GCC Extension – Return Address

I use the GCC Online doc regularly to get some of cool info about the GNU GCC Extensions. Few days back, I saw this Getting the Return or Frame Address of a Function page. Normally we use __FUNCTION__ or __func__ to get the current function name. …

Tagged with: ,
Posted in Uncategorized