Assembler with ID generator using syntax-directed translation

Xiumei Wu · Jisuanji gongcheng yu sheji · 2009

The method to generate assembler with ID is proposed.The basic difficulty of automatic construction acer assembler is solved.This method is divided into three steps.They are lexical analysis,grammar(semantics) analysis and linking.The lexical analyzer translates the source program into pairs,establishes symbol table.The variable memory allocation is also included.The symbol table records both ID and quoted point of label.The grammar(semantics) analyzer translates pairs into unlinked machine code by one-onone approach.The syntax-directed translation is used.In the linking step the program of machine code will be finally formed.The transfer statements are translated by one-on-many approach.This method can be used to generate assemblers of computer system.

Read the paper · More papers on PaperTik