期刊文献+

堆栈处理器代码生成器的设计与实现 被引量:1

Design and Implementation of Code Generator for Stack Processor
在线阅读 下载PDF
导出
摘要 堆栈处理器是一种面向嵌入式控制领域的处理器,其执行过程不依赖于通用寄存器而是硬件堆栈。文中以一款基于FPGA设计的16位堆栈处理器为平台,研究如何将一个C源代码转换成能够被目标处理器汇编器识别的汇编指令。为了能够迅速有效地实现代码生成器,文中选用LCC。LCC是一款可变目标的C编译器,通过重新书写目标处理器的描述文件,LCC可以生成特定处理器的汇编指令。文章的最后通过一个简单的测试证明了C语言是可以移植到堆栈处理器上的。 Stack processor is a processor facing to the field of embedded control, and its implementation process does not depend on general register but hardware stack. Take the 16 stack processor based on FPGA as the platform,research how a C source code can be converted into assembly instruction by target processor assembler recognition, tn order to quickly and effectively achieve the code generator, choose LCC. LCC is one variable target C compiler, through rewriting the description file of the target processor,LCC can generate a particular processor assembly instruction. Finally through a simple test proved that C language can be transplanted to stack on the processor.
出处 《计算机技术与发展》 2013年第4期163-167,共5页 Computer Technology and Development
基金 南京航空航天大学引进人才科研启动基金(S1028-042)
关键词 堆栈处理器 代码生成器 LCC stack processor code generator LCC
  • 相关文献

参考文献11

  • 1储昭贤,施慧彬.基于FPGA的16位堆栈处理器的设计[J].微电子学与计算机,2012,29(2):22-26. 被引量:3
  • 2Fraser C W, Hanson D R. A retargetable C compiler: designand implementation [ M ]. [ s. 1. ] : Benjamin/Cu - turnings Pub. Co. , 1995.
  • 3Fraser CW,Hanson DR.可变目标C编译器-设计与实现[M].王挺,黄春译.北京:电子工业出版社,2005.
  • 4张红光,赵彩云,李海丰,李福才,陈鹏.可重定向C编译器中DAG及归约规则[J].计算机工程,2008,34(17):74-76. 被引量:2
  • 5Pelegri- Llopart E. Rewrite Systems, Pattern Matching, and Code Generation [ D ]. Berkeley: University of California, 1987.
  • 6Pelegri-Llopart E,Graham S L. Optimal code generation for expression trees: An application of BURS theory [ C ]//Pro- ceedings of the 15th ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages. New York :ACM, 1988 : 294-308.
  • 7Fraser C W,Henry R R,Proebsting T A. BURG-Fast Optimal Instruction Selection and Tree Parsing[ J ]. SIGPLAN Notices, 1992,27 (4) :68-76.
  • 8Fraser C W,Hanson D R. The lcc 4. x code-generation inter- face[ R]. Redmond ,WA: [ s. n. ] ,2001.
  • 9Koopman P J. Stack computers: The new wave [ M ]. Califor- nia:Ed. Mountain View Press,1989.
  • 10王民华,张素琴,田金兰.基于类库的可重定向编译器后端设计与实现[J].计算机工程与应用,2003,39(9):115-118. 被引量:1

二级参考文献32

  • 1李宝峰,窦勇,周兴铭.基于LCC的LEAP编译器设计与实现[J].计算机工程与科学,2005,27(1):61-63. 被引量:2
  • 2赵克佳 杨灿群 曾丽芳.多语种多平台编译系统剖析--GNU CC的解剖与移植[M].,1997.88.
  • 3Leo Brodie. Thinking forth [M]. USA: Punchy PUB, 2004: 25-26.
  • 4Shi H, Bailey C. Investigating available instruction level parallelism for stack based machine architectures [C]ffProceedings of Euromiero Symposium on Digital Systems Design. Rennes, France, 2004: 112-120.
  • 5Richard E Haskell. A VHDL-Forth core for FPGAs [J]. Microprocessors and Mierosystems, 2004, 28 (3) :115-125.
  • 6Bernd Paysan. bl6-A forth processor in an FPGA [EB/OL]. [2010-07-20]. http.//www, jwdt. com/~ paysan/bl6, html.
  • 7James Bowman. The J1 forth CPU [EB/OL]. [2010- 07-21]. http://excamera, com/sphinx/fpga-jl, html.
  • 8Leong P H W, Tsang P K, Lee T K. A FPGA based Forth microprocessor[C]//Proceedings of IEEE Sym- posium on FPGAs for Custom Computing Machines. Napa Valley, California, 1998: 254-255.
  • 9C W Fraser, D R Hanson. A Retargetable C Compiler: Design and Implementation. Redwood City, CA: Benjamin/Cummings Pub Co, 1995
  • 10R P Wilson et al. SUIF: An infrastructure for research on parallelizing and optimizing compilers. ACM SIGPLAN Notices, 1994, 29(10): 31~37

共引文献8

同被引文献9

  • 1CHRISTOPHER W F, DAVID R H. A retargetable compiler for c : design and implementation [ M ]. Menlo Park, CA : Ad- dison - wesley, 1995.
  • 2MARK S. A c compiler for stack machines, submitted for the degree of master of science [D]. York: University of York, 2006.7.
  • 3TODD A P. Simple and efficient BURS table generation [ R]. USA : Computer Sciences Technical Report, 1991.
  • 4DAVID M H, SARAH L H. Digital design and computer ar- chitecture [ M ]. Holand : Elsevier lnc, 2007.
  • 5DOMINIC S. See mips run [ M ]. Singapore : Elsevier Pte Ltd, 2007.
  • 6CHRISTOPHER W F, DAVID R H. The Lcc 4. x code - gen- erator interface [ R ]. USA : MSR - TR - 2001 - 64,2001.
  • 7JAMES R L. SPIM :a mips32 simulator [ J]. London:Springer London ,2009.
  • 8DOMINIC S. See MIPS run [ M]. Singapore:Elsevier Pte Ltd,2007.
  • 9张红光,赵彩云,李海丰,李福才,陈鹏.可重定向C编译器中DAG及归约规则[J].计算机工程,2008,34(17):74-76. 被引量:2

引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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