You don't have to calculate much. The entry point is usually the symbol called "main". Other than that, this is really very system-specific.