1. A method for compiling software code, comprising: using a processor to perform an optimization processing with respect to an intermediate representation of a source code; and using the optimized intermediate representation to generate programmatically a constant pool.