1 2 3 4 5 6
#include <stdio.h> void __attribute__ ((constructor)) setup(void) { printf("constructor was called\n"); }