The Community for Technology Leaders
Proceedings. International Conference on Software Maintenance (Cat. No. 98CB36272) (1998)
Bethesda, Maryland
Mar. 16, 1998 to Mar. 19, 1998
ISSN: 1063-6773
ISBN: 0-8186-8779-7
pp: 228
Translation of assembly code to high-level language code is of importance in the maintenance of legacy code, as well as in the areas of program understanding, porting, and recovery of code.We present techniques used in the asm2c translator, a SPARC assembly to C translator. The techniques involve data and control flow analyses. The data flow analysis eliminates machine dependencies from the assembly code and recovers high-level language expressions. The control flow analysis recovers control structure statements. Simple data type recovery is also done.The presented techniques are extensions and improvements on previously developed CISC techniques. The choice of intermediate representation allows for both RISC and CISC assembly code to be supported by the analyses.We tested asm2c against SPEC95 SPARC assembly programs generated by a C compiler. Results using both unoptimized and optimized assembly code are presented.

C. Cifuentes, D. Simon and A. Fraboulet, "Assembly to High-Level Language Translation," Proceedings. International Conference on Software Maintenance (Cat. No. 98CB36272)(ICSM), Bethesda, Maryland, 1998, pp. 228.
94 ms
(Ver 3.3 (11022016))