gcc internals and porting.pdfVIP

  • 9
  • 0
  • 约1.89万字
  • 约 31页
  • 2016-03-12 发布于山西
  • 举报
gcc internals and porting

GCC Internals and Porting HelloGcc Workshop October 24, 2009 Mingjie Xing joefoxreal@ Outline ➢ Getting Started ➢ Overview ➢ Compilation, Source Tree, Internal Framework ➢ Front End ➢ Language Hooks, C Parser, Tree GENERIC ➢ Middle End ➢ GIMPLE, Call Graph, Passes ➢ Back End Port ➢ RTL, MD, Target Macros HelloGcc Workshop 2009 GCC Internals and Porting - 2 Getting Started /wiki/GettingStarted ➢ Tutorials, HOWTOs ➢ GCC Internals Podcast - English listening :) ➢ GCC Internals Tutorial - Very detailed ! ➢ Workshop on GCC Internals - Spim port ➢ Internal Documentation ➢ GCC Internals ➢ Dealing With the Source Code ➢ Debugging, Testing, Writing pass/front-end/back-end ➢ Structure of GCC ➢ Front end, Tree/RTL Optimizers, Passes HelloGcc Workshop 2009 GCC Internals and Porting - 3 Overview ➢ Compilation ➢ Source Tree ➢ Internal Framework HelloGcc Workshop 2009 GCC Internals and Porting - 4 Compilation ➢ gcc driver hello.c ➢ Process spec strings: gcc.c ➢ $ gcc -dumpspecs cc1 ➢ cc1 ➢ Entry point: toplev_main, toplev.c gcc as ➢ Same to cc1plus, jc1, f771, etc. collect2 ➢ collect2 ➢ Real linker: ld a.out ➢ Handle initialization functions: main → __main → constructors $ gcc -v hello.c HelloGcc Workshop 2009 GCC Internals and Porting - 5 Source Tree

文档评论(0)

1亿VIP精品文档

相关文档