文档详情

gcc白皮书.pdf

发布:2016-03-10约字共20页下载文档
文本预览下载声明
An Introduction to the GNU Compiler and Linker William Gatliff Table of Contents Overview 1 The GNU Compiler Collection (gcc) 1 The GNU linker, ld8 Putting It All Together 14 Getting GNU14 Wrapup 17 Resources 18 Copyright19 About the Author 19 Overview Despite their reputations as workstation application development tools, the GNU compiler and linker excel at producing high-quality executables for embedded targets. The reason is only partly because an increasing number of embedded systems are based on the same 32-bit processors found in some desktop workstations; it is mostly because the diverse, high-end workstation environment demands flexible and powerful tools, and such tools can also be used to make great embedded systems. This paper describes the features of the GNU compiler and linker that are most important for embedded developers. It begins with a brief overview of the tools themselves and some of their most useful command line options, then covers the compiler’s syntax extensions, in particular its inline assembly language support. It then introduces the linker’s command language, and concludes with the procedure used to build the tools from source code. The GNU Compiler Collection (gcc) The GNU Compiler Collection, gcc, can compile programs written in C, C++, Java and several other 1 An Introduction to the GNU Compiler and Linker language
显示全部
相似文档