摘要 |
An apparatus, system, and method are provided for identifying fixed memory address errors in source code at build time. The present invention includes a substitution module that substitutes fixed memory address values for hardcoded memory address symbols. The fixed memory address values are substituted according to a mapping between fixed memory address values and hardcoded memory address symbols. A determination module determines size and location information for variables associated with the hardcoded memory address symbols by referencing precompiled object code. A generation module generates one or more conditions and/or memory region conditions that verify memory boundary and/or capacity constraints based on size and location information provided by the determination module. An evaluation module evaluates the conditions and signals an error in response to violation of one of the conditions and/or memory region conditions. The evaluation module may be a conventional build process component such as a conventional source code preprocessor.
|