This sample translation uses a simple implementation of a Calculator program, written in x86 assembler. The calculator includes an expression parser and arithmetic routines. It allows you to evaluate expressions like "3 * (5 - 2)", so that if you compile the translated C source you can actually try out the Calculator utility.
You can either take a quick look at a short excerpt from the translation, or download the full translation.
Click on the links below to display a short excerpt from the sample source assembler and automatically-generated C in your browser:
Full sample translation
Click on the link below to download the full sample translation (assembler source files and translated C sources):
Download the full sample (ZIP file, 45KB)