- 1、本文档被系统程序自动判定探测到侵权嫌疑,本站暂时做下架处理。
- 2、如果您确认为侵权,可联系本站左侧在线QQ客服请求删除。我们会保证在24小时内做出处理,应急电话:400-050-0827。
- 3、此文档由网友上传,因疑似侵权的原因,本站不提供该文档下载,只提供部分内容试读。如果您是出版社/作者,看到后可认领文档,您也可以联系本站进行批量认领。
查看更多
《Linux调试和性能剖析手段(Linux debug and profiling)》.pdf
Linux Debugging and Profiling
Barry Song
2014
GCC
gcc + glibc + linux-header + make
The make headers_install command exports the kernels header files in a
form suitable for use by userspace programs.
Kernel headers are backwards compatible, but not forwards compatible.
This means that a program built against a C library using older kernel headers
should run on a newer kernel (although it may not have access to new
features), but a program built against newer kernel headers may not work on
an older kernel.
Embedded GLIBC (EGLIBC) was a variant of the GNU C Library (GLIBC) that
was designed to work well on embedded systems. EGLIBC strived to be
source and binary compatible with GLIBC. EGLIBCs goals included reduced
footprint, configurable components, better support for cross-compilation and
cross-testing.
GCC compilation process
Preprocessing
Compilation
Assembly
Linking
$ ls
helloworld.c
$ gcc -Wall -save-temps helloworld.c -o helloworld
$ ls
helloworld helloworld.c helloworld.i helloworld.o helloworld.s
The temporary files produced by -save-temps flag in one go can be produced one by one by using the gcc flags
-E, -C and -S at each of the preprocessing, compilation and assembly steps respectively.
preprocessing
The preprocessing step: all the header files that you have
included in your program are actually expanded and included in
source code of your program. Other than this, all the macros are
您可能关注的文档
- 《LG定制版新机Verizon曝光》.doc
- 《lg技术资料》.pdf
- 《LG洗衣机使用说明书》.pdf
- 《LG电子2015校园招聘_大街网制作 @大街网》.pdf
- 《LG电子2016求职大礼包》.pdf
- 《LG-iS5说明书》.doc
- 《LH系列螺杆式水冷冷水机组(R22)》.pdf
- 《Li4Ti5O12 36种合成方法汇编》.pdf
- 《life in uk sirc_report》.pdf
- 《Liferay-EXT通过SQL语句数据库查询》.docx
- 《Linux那些事儿之我是SCSI硬盘》.pdf
- 《Linux那些事儿之我是U盘》.pdf
- 《linux零基础学习》.pdf
- 《Lit_review_for_pump_project》.pdf
- 《LNG储罐吊装方案1》.doc
- 《LNG大型低温储罐内罐设计》.pdf
- 《LNP Starflam PA6 PF0047E江苏现货 PA6 PF0047E燃阻性》.doc
- 《LNP Starflam PA6 PZ0062E江苏现货 PA6 PZ0062E报价》.doc
- 《LNP Stat-Loy PA6 PF303江苏现货 PA6 PF303抗静电》.doc
- 《LNP Thermocomp PA6 PF005江苏现货 PA6 PF005原包》.doc
文档评论(0)