1. A method for performing partial code specialization at runtime, the method comprising: retrieving, from a memory device, a plurality of programmed instructions; analyzing the plurality of programmed instructions to generate a first syntax representation of the plurality of programmed instructions and a first intermediate representation based on the first syntax representation; identifying a sequence of programmed instructions comprised in the plurality of programmed instructions from the first syntax representation, the sequence of programmed instructions being configured to, when executed, perform a function with a parameter; identifying a constant value corresponding to the parameter; generating, at runtime, a specialized version of the sequence of programmed instructions based on the constant value, the specialized version comprising a reference to the constant value; and storing the specialized version, wherein references to the parameter in the sequence of programmed instructions are directly replaced by the constant value in the specialized version.