摘要 |
A compiler and compiling method providing modification of a value of a variable at run-time of a computer program wherein additional space in memory is allocated for variable modification parameters, assembly or object code is added upon compilation of the computer program, the added code being dependent on the variable modification parameters, and the value of the variable is modified at run-time based on the added code and at least one of the variable modification parameters such that the value of the variable at run-time is set to be equivalent to at least one of a fault value, a value multiplied by a predetermined gain and a value offset from the value of the variable or remains unchanged (unscaled) if so desired. The application of the compiler functionality or method is preferably controllable by a software switch for individual and/or all variables.
|