This page presents two sample translations of IBM mainframe assembler code. In each case, the code shown is exactly as produced by Relogix, prior to cleanup by our engineers to improve code style or fix problems like EBCDIC dependencies
The source code of both 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).
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 second example is a File Compression utility written for an IBM mainframe running OS/390 by Jeff Kaplan (All rights acknowledged).
Full sample translations
Click on the link below to download the full sample translations (assembler source file and translated C source):
Download the full samples (ZIP file, 47KB)
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