注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

一路

To find the final symmetry & beauty

 
 
 

日志

 
 
 
 

Writing GCC plugin startup work[origin]  

2012-04-04 05:19:32|  分类: 学习笔记 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
1. Linux environment set up
Get the latest GCC src from gnu website & you should have already installed one GCC binary version on you system for compiling this new version of GCC.  Most of the time, i just make one new folder called gcc-build under my home directory.  When compiling GCC, set this folder as --prefix.

2. Compiling new version GCC properly from source (v4.6.0+)
Follow this link to compiling new version GCC from source,
 http://saturnman.blog.163.com/blog/static/55761120122239343158/
        When compiling GCC, be sure to set --enable option to configure script inorder to use GCC's plugin feature. This feature is not on by default.

3. Compiling new version GDB (v7.4+)
Get newest GDB src from 
http://ftp.gnu.org/gnu/gdb/ 
Using old version of GDB may cause GDB stops at wrong source position, I don't know the reason why that happen, just install the newest version for sack of less headache.

4. Knowing some GCC internal working mechanism when compiling source files
// TODO
5. Knowing basic debugging technique with GDB & how to debug dynamic library
// TODO
6. Knowing linking problem when using C/C++ at the same time
// TODO
7. Tools that may of great help when encountering problems
// TODO
8. Materials that you can use when digging deep into GCC & beyond
// TODO

  评论这张
 
阅读(680)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017