Codewarrior™ Build Tools Reference for Freescale™ 56800/E Digital Signal Controllers
Total Page:16
File Type:pdf, Size:1020Kb
CodeWarrior™ Build Tools Reference for Freescale™ 56800/E Digital Signal Controllers Revised: 17 June 2006 Freescale, the Freescale logo, and CodeWarrior are trademarks or registered trademarks of Freescale Corporation in the United States and/or other countries. All other trade names and trademarks are the property of their respective owners. Copyright © 2006 by Freescale Semiconductor company. All rights reserved. No portion of this document may be reproduced or transmitted in any form or by any means, electronic or me- chanical, without prior written permission from Freescale. Use of this document and related materials is gov- erned by the license agreement that accompanied the product to which this manual pertains. This document may be printed for non-commercial personal use only in accordance with the aforementioned license agreement. If you do not have a copy of the license agreement, contact your Freescale representative or call 1-800-377-5416 (if outside the U.S., call +1-512-996-5300). Freescale reserves the right to make changes to any product described or referred to in this document without further notice. Freescale makes no warranty, representation or guarantee regarding the merchantability or fitness of its products for any particular purpose, nor does Freescale assume any liability arising out of the application or use of any product described herein and specifically disclaims any and all liability. Freescale software is not authorized for and has not been designed, tested, manufactured, or intended for use in developing applications where the failure, malfunc- tion, or any inaccuracy of the application carries a risk of death, serious bodily injury, or damage to tangible property, including, but not limited to, use in factory control systems, medical devices or facilities, nuclear facil- ities, aircraft navigation or communication, emergency systems, or other applications with a similar degree of potential hazard. How to Contact Freescale Corporate Headquarters Freescale Corporation 7700 West Parmer Lane Austin, TX 78729 U.S.A. World Wide Web http://www.freescale.com/codewarrior Technical Support http://www.freescale.com/support Table of Contents 1 Introduction 13 Compiler Architecture . 13 Linker Architecture. 14 2 Using Build Tools with the CodeWarrior IDE 15 Invoking CodeWarrior Compilers and Linkers. 15 Specifying File Locations . 15 IDE Options and Pragmas. 16 IDE Settings Panels . 16 C/C++ Language (C only) Settings Panel. 16 C/C++ Preprocessor Panel . 20 C/C++ Warnings Panel . 22 3 Using Build Tools on the Command Line 27 Naming Conventions . 28 Configuring Command-Line Tools. 28 CWFolder Environment Variable . 28 Setting the PATH Environment Variable. 29 Invoking Command-Line Tools . 29 Getting Help . 30 Help Guidelines. 30 File Name Extensions . 31 Specifying Source File Locations . 32 Environmental Variables. 32 Standard C and C++ Conformance Options . 33 -ansi . 33 -stdkeywords . 34 -strict . 34 Language Translation and Extensions Options. 34 -char. 35 -defaults. 36 -encoding. 36 Build Tools Reference for Freescale™ 56800/E Digital Signal Controllers 3 Table of Contents -flag . .37 -gccext . .37 -gcc_extensions . .38 -M . .38 -make . .38 -mapcr . .38 -MM. .39 -MD . .39 -MMD . .39 -multibyteaware . .40 -once . .40 -pragma . .40 -relax_pointers . .41 -requireprotos. .41 -search . .41 -trigraphs . .41 Errors, Warnings, and Diagnostic Options . .42 -disassemble. .42 -help. .43 -maxerrors . .44 -maxwarnings . .44 -msgstyle . .45 -nofail. .45 -progress . .45 -S . .46 -stderr. .46 -verbose . .46 -version . .47 -timing . .47 -warnings . .47 -wraplines . .50 Preprocessing and Precompilation Options. .50 -convertpaths . .51 -cwd . .52 -D+. .52 4 Build Tools Reference for Freescale™ 56800/E Digital Signal Controllers Table of Contents -define . 53 -E . 53 -EP. 53.