跳到主要內容

臺灣博碩士論文加值系統

(44.222.218.145) 您好!臺灣時間:2024/03/04 01:05
字體大小: 字級放大   字級縮小   預設字形  
回查詢結果 :::

詳目顯示

: 
twitterline
研究生:馬秀華
研究生(外文):Hsiu-Hua Ma
論文名稱:應用GCC編譯工具組於x86至ARM程式碼之轉譯技術
論文名稱(外文):Translating x86 code to ARM code with GCC
指導教授:張榮貴張榮貴引用關係
指導教授(外文):Rong-Guey Chang
學位類別:碩士
校院名稱:國立中正大學
系所名稱:資訊工程所
學門:工程學門
學類:電資工程學類
論文種類:學術論文
論文出版年:2005
畢業學年度:93
語文別:英文
論文頁數:25
中文關鍵詞:指令轉換
外文關鍵詞:code translation
相關次數:
  • 被引用被引用:1
  • 點閱點閱:734
  • 評分評分:
  • 下載下載:39
  • 收藏至我的研究室書目清單書目收藏:0
隨著嵌入式系統、具特殊用途的設備和可攜式設備的發展,硬體供應者提出各種不同的硬體架構。因為硬體架構與指令的差異,軟體資源共享和可移植性成為一個重要的問題。
在這一篇論文中,我們發展一套軟體工具應用GCC編譯工具組將以x86的指令架構(ISA)所表示的指令轉譯成以ARM的指令架構表示。由於GCC是著名的編譯器並且支持釵h不同的硬體架構。GCC並在產生目的碼的過程中做一些最佳化的步驟。我們的研究目標是希望能運用GCC產生目的碼。這種方法不僅節省一半的轉譯工作,而且更便於轉譯為GCC有支援的硬體架構之指令集。轉譯過程中也能運用GCC的函式對程式碼做最佳化。
As the developing of embedded systems, specific-purpose devices and portable devices, each hardware vendor proposes different hardware architectures. Because of the difference of hardware, the software resource sharing and portability become an important problem.
In this paper, we aimed at solving this issue by developing a software tool to translate the code of x86 instruction set architecture (ISA) to those of ARM ISA with GCC(GNU Compiler Collection). GCC is the well-known compiler and supports lots of hardware. GCC also do some optimization during generating code. The goal of our research is to find the way to use GCC during generating target code. This method not only saves the half work of translation, but also gets easily for translating to different hardware, which is supported by GCC. During the translation, the translated code can be optimization by using GCC’s function.
Contents
Introduction 1
1.1 Background 1
1.2 GNU Compiler Collection 2
1.3 Motivation 3
1.4 Contribution 4
1.5 Organization 5
Related Work 6
2.1 Binary Translators and Interpreters 6
Translating Mechanism 10
3.1 X86 Instruction Set Architecture 10
3.2 Intermediate Code : GCC RTL 11
3.3 The Mechanism 16
3.3.1 Disassembler 17
3.3.2 Translating From x86 Assembly Code to Textual RTL 19
3.3.3 Modified GCC 19
Experimental Result 21
Conclusion and Future Work 22
5.1 Conclusion 22
5.2 Future Work 22
Reference 23
Reference
1.James C. Dehnert, Brian K. Grant, John P. Banning, Richard Johnson, Thomas Kistler, Alexander Klaiber, Jim Mattson. The Transmeta Code Morphing™ Software: Using Speculation, Recovery, and Adaptive Retranslation to Address Real-Life Challenges. In the Proceedings of the First Annual IEEE/ACM International Symposium on Code Generation and Optimization, 27-29 March 2003, San Francisco, California

2.A. Bergh, K. Keilman, D. Magenheimer, and J. Miller, "HP 3000 Emulation on HP Precision Architecture Computers," Hewlett-Packard Journal (December 1987).

3.K. Andrews and D. Sand. Migrating a CISC computer family onto RISC via object code translation. In Proceedings ASPLOS V, pages 213-222, OCT. 1992.

4.R. Bedichek. Some efficient architecture simulation techniques. In Proceedings Winter USENIX Conferenc, pages 53-63, 1990

5.B. Cmelik and D. Keppel. Shade: A fast instruction-set simulator for execution profiling. In Proceedings ACM SIGMETRICS Conference on Measurement and modeling of Computer Systems, 1994

6.B. Cogswell and Z. segall. Timing insensitive binary-to-binary migration across multiprocessor architectures. In Proceedings of the Third Workshop on Parallel and Distributed Real-Time Systems, pages 193-194, Santa Barbara, CA, USA, Apr. 1995. IEEE Computer Society Press.

7.S. Johnson. Postloading for fun and profit. 1990. in Proceedings Winter USENIX Conference, pages 325-330.

8.C May. MIMIC: A fast System/370 simulator. 1987. in Proceedings SIGPLAN'87 Simposium on Interpreters and Interpretive Techniques, pages 1-13.

9.R. Sites and A. Chernoff and M. Kirk and M. Marks and S. Robinson. Binary Translation. 1993. Communications of the ACM, 36(2):69-81.

10.T. Thompson. An Alpha in PC clothing. 1996. Byte, pages:195-196. Feb. 1996.

11.Robert Muth, Saumya Debray, Scott Watterson, and Koen De Bosschere. alto : A Link-Time Optimizer for the Compaq Alpha, Software Practice and Experience, 31:67-101, Jan. 2001.

12.Emmett Witchel and Mendel Rosenblum. Embra: Fast and Flexible Machine Simulation In Proceedings of ACM SIGMETRICS '96: Conference on Measurement and Modeling of Computer Systems, Philadelphia, PA, 1996.

13.C Cifuentes and M Van Emmerik, UQBT: Adaptable Binary Translation at Low Cost, Computer, Vol 33, No 3, March 2000, IEEE Computer Society Press, pp 60-66.

14.D Ung and C Cifuentes, Machine-Adaptable Dynamic Binary Translation. Proceedings of the ACM SIGPLAN Workshop on Dynamic and Adaptive Compilation and Optimization, Boston, USA, Jan 2000, ACM Press, pp 30-40.

15.GCC (GNU Compiler Collection ) http://gcc.gnu.org/
QRCODE
 
 
 
 
 
                                                                                                                                                                                                                                                                                                                                                                                                               
第一頁 上一頁 下一頁 最後一頁 top