entry-point: start (notice this symbol name is valid on asm-level only !) hooks for c: /* called at the beginning of main */ void __main(void){ } /* called if program terminates */ void exit(int){ } void atexit(){ } additionally for cpp (thanx to emanuel, tubooboo@ngine.de, www.ngine.de): extern "C" { void *__builtin_new(int size) { return malloc(size); } void __builtin_delete(void *ptr) { free(ptr); } } // end extern "C"