Browse Prior Art Database

Method for Porting Assembler Code from Windows to Linux Disclosure Number: IPCOM000014984D
Original Publication Date: 2001-Oct-04
Included in the Prior Art Database: 2003-Jun-20

Publishing Venue



This invention is a method for porting assembler code written for the Microsoft Macro Assembler (MASM)(*) product on Windows to the Netwide Assembler (NASM)(**) product which generates code for Linux running on the Intel x86 series of processors. The technique for porting the code is to use an Assembler Translator to convert the MASM source to NASM source. The Assembler Translator is comprised of two components the Regular Expression (RegEx) Generator and the Language Rules and is written in Perl. Perl is an interpreted language popular on UNIX for its flexible text-processing capabilities, which made it a good choice for the translation phase of this project. The RegEx Generator creates Perl Regular Expressions from the Language Rules. The Language Rules define the translations in high-level terms such as comment, xlate, and rewrite, which will be explained later. A ssem bler Translator Assembler Translator The Assembler Translator provides the following functions: