实例介绍
从GCC官网下载的GCC编译参考手册,包含编译时的各种参数的说明都可以在里面找到,一般如果我们在编译的时候遇到一些不懂的编译选项,又想知道这些选项的含义时,查询这个手册是一个非常好的选择
About the author Arthur griffith has been involved with the development of compilers, interpreters, linkers and assemblers since his first programming job in 1977, where he worked as a team member developing an assembler and linker for special-purpose computers. He then joined the maintenance group for a compiler of the PL/EXUS language, which had an underlying structure very similar to GCC. The next project was to write an interactive interpreter and compiler for a language named SAtS The projects that followed these included the development of a Forth interpreter, extensions to a Cobol compiler, and the development of some special-purpose interpretive languages for machine control One of these was an interactive command language providing multistation ground-based control of industrial satellite communications stems For the past few years, Arthur Griffith has turned to writing computer books, teaching programming online, and developing some software in java. The programming books he has written range from Java, XML, and Jaxp to COBOL for Dummies. He has used GCC for many software-development projects, and with the inclusion of Java as one of the gCc languages, writing this book became his project of choice GCC The complete Reference Arthur griffith McGraw-Hill/Osborne New York Chicago San Francisco Lisbon London Madrid Mexico City Milan New Delhi San juan Seoul Singapore Sydney Toronto McGraw-Hill/ Osbone A DiriinH at Te MGmw HN Camis Copyright@ 2002 by The McGraw-HIll Companies, Inc. All rights reserved. Manufactured in the United States of America. Except as permitted under the United States Copyright Act of 1976, no part of this publication may be reproduced or distributed in any form or by any means, or stored in a database or retrieval system, without the prior written permission of the publisher. 0-07-222816-4 The material in this e Book also appears in the print version of this title: 0-07-222405-3 All trademarks are trademarks of their respective owners Rather than put a trademark symbol after every occur rence of a trademarked name we use names in an editorial fashion only, and to the benefit of the trademark owner, with no intention of infringement of the trademark. Where such designations appear in this book, they have been printed with initial caps McGraw-Hill eBooks are available at special quantity discounts to use as premiums and sales promotions, or for use in corporate training programs. For more information, please contact George Hoare, Special Sales,at georgehoare@mcgraw-hill.comor(212)904-4069 TERMS OF USE This is a copyrighted work and The McGraw-Hill Companies, Inc(McGraw-Hill)and its licensors reserve all rights in and to the work. Use of this work is subject to these terms. Except as permitted under the Copyright Act of 1976 and the right to store and retrieve one copy of the work, you may not decompile, disassemble, reverse engineer, reproduce, modify, create derivative works based upon, transmit, distribute, disseminate, sell, publish or sublicense the work or any part of it without McGraw-Hills prior consent. You may use the work for your own noncommercial and personal use; any other use of the work is strictly prohibited. Your right to use the work may be terminated if you fail to comply with these terms THE WORK IS PROVIDED"AS IS. MCGRAW-HILL AND ITS LICENSORS MAKE NO GUARANTEES OR WARRANTIES AS TO THE ACCURACY, ADEQUACY OR COMPLETENESS OF OR RESULTS TO BE OBTAINED FROM USING THE WORK. INCLUDING ANY INFORMATION THAT CAN BE ACCESSED THROUGH THE WORK VIA HYPERLINK OR OTHERWISE AND EXPRESSLY DISCLAIM ANY WAR RANTY EXPRESS OR IMPLIED. INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. McGraw-Hill and its licensors do not warrant or guarantee that the functions contained in the work will meet your requirements or that its operation will be uninterrupted or error free. Neither McGraw-Hill nor its licensors shall be liable to you or anyone else fo any inaccuracy, error or omission, regardless of cause, in the work or for any damages resulting therefrom McGraw-Hill has no responsibility for the content of any information accessed through the work. Under no cir cumstances shall McGraw-Hill and/or its licensors be liable for any indirect, incidental, special, punitive, conse- quential or similar damages that result from the use of or inability to use the work, even if any of them has been advised of the possibility of such damages. This limitation of liability shall apply to any claim or cause whatso ever whether such claim or cause arises in contract tort or otherwise. DOI:10.10360072228164 For Mary This page intentionally left blank For more information about this title, click here Contents at a glance Part The Free Software Compiler ⊥ Introduction to gco l 2 Acquiring and Installing the Compiler 17 Part Using the Compiler Collection ‖3 The preprocessor 45 4 Co1 iling c 8 67 5 Compiling C++ 103 6 Compiling objective-C 125 ‖7 Compiling fortran .137 ‖8 Compiling java ......157 viii GCC: The Complete Reference 9 Compiling Ada 鲁鲁鲁鲁 183 10 Mixing Languages ..215 Internationalization ...243 Part ll Peripherals and internals 12 Linking and Libraries 259 13 Using the GNU Debugger 281 l 14 Make and autoconf 299 ‖15 The GNu assembler 317 16 Cross Compiling and the Windows Ports 337 17 Embedded Systems 347 I 18 Output from the Compiler 357 19 Implementing a Language 371 20 Register Transfer language 387 21 Machine-Specific Compiler Options 419 Part v Appendixes A GNU General Public license 493 b Environment variables 501 c Command-Line Cross Reference 505 D Command-Line Options 515 E Glossary 599 For more information about this title, click here Contents Acknowledgments XIX Introduction Part The Free Software Compiler ⊥ Introduction to gco 3 4 Suring a Compi 4 Command-Line Options Platforms 6 What the Compiler does C Is the Fundamental Language C++ Was the first addition Objective-C Fortran lava 【实例截图】
【核心代码】
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论