This page presents several sample translations of IBM mainframe assembler code. Except where noted, the source code of these examples was obtained from the CBT Tape web site:
http://www.cbttape.org/cbtdowns.htm
All assembler code is written for the IBM High Level Assembler (HLASM).
Quick look
Click on the links below to display the sample source assembler and automatically-generated C in your browser:
-
The first example comes from a set of Date Conversion routines written by Jay Moseley (All rights acknowledged).
The C code shown is exactly as produced by Relogix, prior to any hand cleanup by our engineer.
If you download the full sample translation (below) you can try an executable version of the translated code and read in detail about how the translation was done.
-
The second example is a guessing game in which you need to feed hungry zoo animals, written by Keith Fenske (All rights acknowledged).
Again the C code shown is exactly as produced by Relogix, prior to cleanup.
The original assembler source code for this example comes from here.
-
The third example is a File Compression utility written for an IBM mainframe running OS/390 by Jeff Kaplan (All rights acknowledged).
Full sample translation
Click on the link below to download a full sample translation of the Date Conversion code. This includes the original assembler source file and the translated C source at various stages in the conversion process. Full documentation on the sample is included:
Download a full sample (ZIP file, 553KB)
Documentation
More information on Relogix is contained in the following documents
- An Introduction to Relogix (mainframe assembler version) (PDF, 190KB, 20 pages) An overview of how Relogix translates assembler code, using IBM mainframe assembler examples (this is the PDF version of the Technical Tour web pages, with examples modified to use IBM assembler)
- Relogix: Converting assembler to high quality C (PDF, 550KB, 16 pages) A document which explores some of the techniques Relogix uses to achieve high-quality code
Platform Modernization Alliance
MicroAPL is proud to be a member of the Platform Modernization Alliance, a group of companies that are working together to help customers migrate workloads off the mainframe and onto the Microsoft platform
- An Introduction to Relogix (mainframe assembler version) (PDF, 190KB, 20 pages) An overview of how Relogix translates assembler code, using IBM mainframe assembler examples (this is the PDF version of the Technical Tour web pages, with examples modified to use IBM assembler)