Title :
Dominator homomorphism based code matching for source-level simulation of embedded software
Author :
Stattelmann, Stefan ; Bringmann, Oliver ; Rosenstiel, Wolfgang
Author_Institution :
FZI Forschungszentrum Inf., Karlsruhe, Germany
Abstract :
Relating optimized binary code and the source-level statements from which it was created can be challenging if an optimizing compiler was used to create the machine code. Moreover, this relation is crucial if a compiler-optimized program must be debugged or results from a low-level analysis need to be mapped to the source code to perform manual optimizations. Existing approaches for the debugging of optimized code usually require pervasive changes in the compiler and hence are not available for all architectures. Methods for analyzing non-functional properties of software components in complex systems (i.e. execution time and power consumption) often have similar constraints, if compiler optimizations are supported at all. This paper proposes two novel concepts to overcome these issues. To precisely relate source-level statements with the respective compiler-generated machine code, a method to reconstruct and disambiguate debug information is presented. Based on this information, an instrumentation technique is introduced which allows accurately simulating the execution of optimized binary code at the source code level. Experimental results show that by using this technique, arbitrary low-level properties of software components can be evaluated in a fast and accurate manner without running the software on the actual target hardware.
Keywords :
digital simulation; embedded systems; optimising compilers; software engineering; compiler-generated machine code; dominator homomorphism based code matching; embedded software; instrumentation technique; optimized code debugging; optimizing compiler; software component; source-level simulation; Binary codes; Computer architecture; Debugging; Optimization; Program processors; Timing;
Conference_Titel :
Hardware/Software Codesign and System Synthesis (CODES+ISSS), 2011 Proceedings of the 9th International Conference on
Conference_Location :
Taipei
Print_ISBN :
978-1-4503-0715-4