. . "If any function which is called in main.c is exist in cons.c, compile cons.c as static library, then link it with main(), the constructor will be called before main." . .