Design of Retargetable Assembler System
LIU Ling,FENG Wen-nan,WANG Ying-chun,JIANG An-ping,JI Li-jiu
DOI: https://doi.org/10.3969/j.issn.1681-5289.2008.08.007
2008-01-01
Abstract:An assembler plays a very important role in the field of microprocessor verifications and applications, thus how to build a retargetable assembler system has been a hotspot in this field for long time. This paper presents a new method about the retargetable assembler system design. It provides a kind of language CMDL, code mapping description language. During the process of assembling, assembler languages are firstly translated to CMDL, and then mapped to the machine codes. In an other word, CMDL is inserted between assembler languages and machine codes during the translation procedure. As a medium code, CMDL has a lot of features, such as high extraction, strong descript capabilities. It can describe almost all attributes of assembler languages. By breaking the direct mapping relationship between assembler languages and machine codes, the complexities of machine codes are hided to the users, therefore, the new retargetable assembler system has higher retargetable level by converting the mapping from assembler languages and machine codes to assembler languages and CMDL, and implementation of it becomes easier. Based on the new mapping system structure, a retargetable assembler system is developed. It proved the whole system therethhas good retargetability and implantability.