The SPARC2C® translator is a software tool that will convert existing SPARC6 programs to "C". The powerful SPARC2C® translator accepts sparc programs, checks their syntax and outputs C code. The comments are move transparently from the source file to the target file. Any built-in functions for math, string manipulation and I/O in sparc are converted to calls to external procedures (see sample translation) .
The SPARC2C® translator contains a syntax analyzer, an SPARC to tertiary converter, and a tertiary to "C converter. The syntax analyzer scans the SPARC input file for syntactic errors and generates a listing file of the SPARC program. Any syntactic errors will be flagged with detailed English messages in the listing file. If no errors are encountered, the SPARC input file is converted to tertiary language. Then the tertiary file is checked and, if no errors are detected, it is converted to "C". A command line control is provided to allow translation with errors in the source file. This is helpful when translating code fragments that are not complete programs.
The translation of the SPARC source language into an intermediate tertiary language ensures the logical equivalence between the source and target languages. This sophisticated tertiary language, which is common to our entire family of translators, allows complex mapping from source language to the target. The tertiary language is automatically converted to "C" while maintaining the logical equivalence between the output "C" program and the input SPARCprogram.
The "C" output file will be generated in Standard ANSI C code.
- SUN SPARC
- SUNSOFT SPARC
- ORACLE SPARC
- ATMEL SPARC
Versions suported 5,7,8,9
as selected by a command line option.
RESERVED WORDS (SPARC®):
PRE-DECLARED IDENTIFIERS (SPARC2C®):