1. A method for processing software code, comprising: using a processor to perform an optimization processing with respect to an intermediate representation of a source code; and analyzing the optimized intermediate representation programmatically to identify a safepoint and insert safepoint related code associated with the safepoint.