期刊文献+

一种快速构造汇编器的方法及其应用 被引量:3

A Method for Quickly Constructing an Assembler and Its Application
下载PDF
导出
摘要 本文给出一种快速构造汇编器的方法。这种方法的特点是借助lex和yacc分别生成汇编器的词法和语法分析器;指令在汇编器中以一种内部表示的形式存在;指令的编码信息存放在数据表格中,编码一条指令时使用一个通用的过程查询这些表格以决定指令的编码格式,然后调用相应的编码函数产生指令的机器代码。通过这种方法构造的汇编器是易修改的。本文最后叙述这一方法在实现一款VLIWDSP汇编器时的应用。 In this article we propose a method for quickly constructing an assembler, The method has the following features: it uses lex and yacc to generate the lexer and parser of an assembler respectively; an instruction exists as an internal representation in the assembler; the instructions' encoding information is saved in the data tables, when encoding an instruction a generic procedure is employed to search these tables to decide on its encoding format, and then a corresponding encoding function is called to produce its machine code. An assembler constructed using this method is easily modifiable. Finally we describe the application of this method when implementing a VLIW DSP' assembler.
出处 《计算机工程与科学》 CSCD 2006年第6期131-134,共4页 Computer Engineering & Science
基金 国家863计划资助项目(2002AA1Z1110)
关键词 汇编器 构造 VLIW assembler construction VLIW
  • 相关文献

参考文献8

  • 1Robert M Graham.Principles of Systems Programming[M].Krieger Publishing Corp,1975.
  • 2David Salomon.Assemblers and Loaders[M].Ellis Horwood Ltd,1993.
  • 3D M Dhamdhere.Systems Programming and Operating Systems.Second Revised Edition (影印版)[M].北京:清华大学出版社,2001.
  • 4J R Levine,Tony Mason,Doug Brow.杨作梅,张旭东,等译.lex与yacc.第二版[M].北京:机械工业出版社,2003.
  • 5储鹤.Linux下51汇编器的设计及实现[J].单片机与嵌入式系统应用,2003,3(10):79-81. 被引量:2
  • 6王晓栋,郑扣根.基于嵌入式系统的交叉汇编器的研究与实现[J].工业控制计算机,2004,17(3):34-35. 被引量:4
  • 7John L Hennessy,David A Patterson.Computer Organization & Design:The Hardware/Software Interface.Second Edition(影印版)[M].北京:机械工业出版社,1999.
  • 8Texas Instruments Corp.TMS320C6000 CPU and Instruction Set Reference Guide[M].2000.

二级参考文献5

  • 1James R.Larus.Assemblers,Linkers,and the SPIM Simulator.
  • 2Alfred V.Aho,Ravi Sethi and Jeffrey D.Ullman.Compilers:Principles,Techniques,and Tools. Pearson Education.[M]
  • 3Gerry Kaine and Joe Heinrich. MIPS Risc Architecture.1992,MIPS Technologies,Inc.
  • 4.GNU On-Line Documentation[EB/OL].http:∥www.gnu.org/ [EB/OL].,.
  • 5孙育才.MCS-51系列单片微型计算机及其应用[M].南京:东南大学出版社,2000,3..

共引文献3

同被引文献39

引证文献3

二级引证文献5

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部