CCES 2.9.0 C/C++ Compiler Manual for SHARC Processors
Total Page:16
File Type:pdf, Size:1020Kb
CCES 2.9.0 C/C++ Compiler Manual for SHARC Processors (Includes SHARC+ and ARM Processors) Revision 2.2, May 2019 Part Number 82-100117-01 Analog Devices, Inc. One Technology Way Norwood, MA 02062-9106 Copyright Information ©2019 Analog Devices, Inc., ALL RIGHTS RESERVED. This document may not be reproduced in any form without prior, express written consent from Analog Devices, Inc. Printed in the USA. Disclaimer Analog Devices, Inc. reserves the right to change this product without prior notice. Information furnished by Ana- log Devices is believed to be accurate and reliable. However, no responsibility is assumed by Analog Devices for its use; nor for any infringement of patents or other rights of third parties which may result from its use. No license is granted by implication or otherwise under the patent rights of Analog Devices, Inc. Trademark and Service Mark Notice The Analog Devices logo, Blackfin, Blackin+, CrossCore, EngineerZone, EZ-Board, EZ-KIT, EZ-KIT Lite, EZ-Ex- tender, SHARC, SHARC+, and VisualDSP++ are registered trademarks of Analog Devices, Inc. EZ-KIT Mini is a trademark of Analog Devices, Inc. All other brand and product names are trademarks or service marks of their respective owners. CCES 2.9.0 C/C++ Compiler Manual for SHARC Processors ii Contents Preface Purpose of This Manual................................................................................................................................. 1±1 Intended Audience......................................................................................................................................... 1±1 Manual Contents........................................................................................................................................... 1±1 Technical Support.......................................................................................................................................... 1±2 Supported Processors ..................................................................................................................................... 1±2 Product Information...................................................................................................................................... 1±2 Analog Devices Website.............................................................................................................................. 1±3 EngineerZone ............................................................................................................................................. 1±3 Notation Conventions ................................................................................................................................... 1±3 Compiler C/C++ Compiler Overview............................................................................................................................ 2±2 Compiler Components ............................................................................................................................... 2±3 Compiler Command-Line Interface............................................................................................................... 2±4 Running the Compiler................................................................................................................................ 2±5 Processor Features....................................................................................................................................... 2±7 Compiler Command-Line Switches............................................................................................................ 2±9 C/C++ Mode Selection Switch Descriptions.......................................................................................... 2±18 -c89 ................................................................................................................................................. 2±18 -c99 ................................................................................................................................................ 2±18 -c++ ................................................................................................................................................. 2±18 -c++11 ............................................................................................................................................ 2±18 -g++ ................................................................................................................................................. 2±19 C/C++ Compiler Common Switch Descriptions ................................................................................... 2±19 sourcefile ..................................................................................................................................... 2±19 -@ filename................................................................................................................................... 2±19 -A name[tokens] .......................................................................................................................... 2±19 CCES 2.9.0 C/C++ Compiler Manual for SHARC Processors iii -absolute-path-dependencies........................................................................................... 2±20 -add-debug-libpaths.............................................................................................................. 2±20 -alttok .......................................................................................................................................... 2±20 -always-inline.......................................................................................................................... 2±21 -annotate ..................................................................................................................................... 2±21 -annotate-loop-instr ........................................................................................................... 2±21 -asms-safe-in-simd-for-loops ........................................................................................ 2±21 -auto-attrs................................................................................................................................. 2±22 -build-lib................................................................................................................................... 2±22 -C...................................................................................................................................................... 2±22 -c...................................................................................................................................................... 2±22 -char-size[-8|-32] ................................................................................................................ 2±22 -compatible-pm-dm................................................................................................................... 2±22 -component file.xml ............................................................................................................... 2±23 -const-read-write .................................................................................................................. 2±23 -const-strings.......................................................................................................................... 2±23 -D macro[=definition]................................................................................................................. 2±23 -dependency-add-target target........................................................................................ 2±23 -double-size[-32|-64] ......................................................................................................... 2±24 -double-size-any..................................................................................................................... 2±24 -dry ................................................................................................................................................. 2±24 -dryrun .......................................................................................................................................... 2±24 -E...................................................................................................................................................... 2±24 -ED ................................................................................................................................................... 2±24 -EE ................................................................................................................................................... 2±24 -eh ................................................................................................................................................... 2±24 -enum-is-int .............................................................................................................................. 2±25 -extra-keywords.................................................................................................................................. 2±25 -extra-precision..................................................................................................................... 2±25 -file-attr name[=value] ....................................................................................................... 2±26 iv CCES 2.9.0 C/C++ Compiler Manual for SHARC Processors -flags-{asm|compiler|ipa|lib|link|mem|prelink} switch[, switch2[,