a gcc compiler optimization problem from my colleague
来源:互联网 发布:c语言void用法 编辑:程序博客网 时间:2024/06/09 20:18
function-section
data-section
Could any one tell what exactly these two option do. I have not been
able to understand why we use them because as per the gcc man page,
these options increase the size of libraries and exe
This group is not appropriate to answer your question.
cf. http://gcc.gnu.org/lists.html
http://gcc.gnu.org/onlinedocs/gcc-4.2.1/gcc/Optimize-Options.html
-ffunction-sections
-fdata-sections
Place each function or data item into its own section in the output file if the target supports arbitrary sections. The name of the function or the name of the data item determines the section's name in the output file.
Use these options on systems where the linker can perform optimizations to improve locality of reference in the instruction space. Most systems using the ELF object format and SPARC processors running Solaris 2 have linkers with such optimizations. AIX may have these optimizations in the future.
Only use these options when there are significant benefits from doing so. When you specify these options, the assembler and linker will create larger object and executable files and will also be slower. You will not be able to use gprof on all systems if you specify this option and you may have problems with debugging if you specify both this option and -g.
http://coding.derkeiler.com/Archive/C_CPP/comp.lang.c/2007-08/msg00245.html
http://debugerror.blog.ccidnet.com/blog-htm-itemid-273860-do-showone-type-blog-uid-68775.html
http://sources.redhat.com/ml/crossgcc/2006-10/msg00036.html
http://www.nuoya.org/bbs/forum_posts.asp?TID=163&PN=1
- a gcc compiler optimization problem from my colleague
- Do I have a gcc optimization bug or a C code problem?
- Is Query Optimization a “Solved” Problem?
- How to disable compiler optimization for a piece of code
- A letter from my friend
- A problem with my meal
- the complexity of solving a l0-norm optimization problem
- 《DEEP LEARNING AS A MIXED CONVEX COMBINATORIAL OPTIMIZATION PROBLEM》解读
- my fee is a big problem
- Building GCC as a Cross-compiler for Simplescalar/Alpha
- Optimization in GCC
- About GCC printf optimization
- GCC Link Time Optimization
- convex optimization from stanford
- GCC - My GCC Manual
- GCC - My GCC Manual
- How to set up Eclipse with the gcc C++ compiler and GoogleTest on Windows7, from scratch
- Code Optimization Using the GNU C Compiler
- [LCS]启用WindowsMessenger5.0的调试日志功能来诊断登录LCS服务器
- 赵勖予:再见,CodeArtist(下)
- [收藏]再见,CodeArtist
- [C#]I/O完成端口的类定义和测试实例
- [EnterpriseServices]利用assembly定义我们的组件在COM+中的注册方式
- a gcc compiler optimization problem from my colleague
- [C#]I/O完成端口的实现
- 离开几天
- [GOLF]过了磨合期了
- [C#]如何将自定义的structure转换为byte[]?
- 超级卓越企业
- Proxy Pattern (代理模式)
- [dotNET]“ThreadPool 对象中没有足够的自由线程来完成操作”的现象和解决办法
- linker error: unable to open input file 'coh.obj'错误的排除