ARM® Compiler Toolchain Version 5.03
Total Page:16
File Type:pdf, Size:1020Kb
ARM® Compiler toolchain Version 5.03 Compiler Reference Copyright © 2010-2013 ARM. All rights reserved. ARM DUI 0491I (ID012213) ARM Compiler toolchain Compiler Reference Copyright © 2010-2013 ARM. All rights reserved. Release Information The following changes have been made to this book. Change History Date Issue Confidentiality Change 28 May 2010 A Non-Confidential ARM Compiler toolchain v4.1 Release 30 September 2010 B Non-Confidential Update 1 for ARM Compiler toolchain v4.1 28 January 2011 C Non-Confidential Update 2 for ARM Compiler toolchain v4.1 Patch 3 30 April 2011 D Non-Confidential ARM Compiler toolchain v5.0 Release 29 July 2011 E Non-Confidential Update 1 for ARM Compiler toolchain v5.0 30 September 2011 F Non-Confidential ARM Compiler toolchain v5.01 Release 29 February 2012 G Non-Confidential Document update 1 for ARM Compiler toolchain v5.01 Release 27 July 2012 H Non-Confidential ARM Compiler toolchain v5.02 Release 31 January 2013 I Non-Confidential ARM Compiler toolchain v5.03 Release Proprietary Notice Words and logos marked with ™ or ® are registered trademarks or trademarks of ARM in the EU and other countries, except as otherwise stated below in this proprietary notice. Other brands and names mentioned herein may be the trademarks of their respective owners. Neither the whole nor any part of the information contained in, or the product described in, this document may be adapted or reproduced in any material form except with the prior written permission of the copyright holder. The product described in this document is subject to continuous developments and improvements. All particulars of the product and its use contained in this document are given by ARM in good faith. However, all warranties implied or expressed, including but not limited to implied warranties of merchantability, or fitness for purpose, are excluded. This document is intended only to assist the reader in the use of the product. ARM shall not be liable for any loss or damage arising from the use of any information in this document, or any error or omission in such information, or any incorrect use of the product. Where the term ARM is used it means “ARM or any of its subsidiaries as appropriate”. Some material in this document is based on IEEE 754 - 1985 IEEE Standard for Binary Floating-Point Arithmetic. The IEEE disclaims any responsibility or liability resulting from the placement and use in the described manner. Confidentiality Status This document is Non-Confidential. The right to use, copy and disclose this document may be subject to license restrictions in accordance with the terms of the agreement entered into by ARM and the party that ARM delivered this document to. Product Status The information in this document is final, that is for a developed product. Web Address http://www.arm.com ARM DUI 0491I Copyright © 2010-2013 ARM. All rights reserved. ii ID012213 Non-Confidential Contents ARM Compiler toolchain Compiler Reference Chapter 1 Conventions and feedback Chapter 2 Introduction 2.1 About the ARM compiler .......................................................................................... 2-2 2.2 Source language modes of the compiler ................................................................. 2-3 2.3 ISO C90 ................................................................................................................... 2-4 2.4 ISO C99 ................................................................................................................... 2-5 2.5 ISO C++ ................................................................................................................... 2-6 2.6 Language extensions and language compliance ..................................................... 2-7 2.7 Language extensions ............................................................................................... 2-8 2.8 Language compliance .............................................................................................. 2-9 2.9 The C and C++ libraries ......................................................................................... 2-10 Chapter 3 Compiler Command-line Options 3.1 -Aopt ........................................................................................................................ 3-6 3.2 --allow_fpreg_for_nonfpdata, --no_allow_fpreg_for_nonfpdata ............................... 3-7 3.3 --allow_null_this, --no_allow_null_this ..................................................................... 3-8 3.4 --alternative_tokens, --no_alternative_tokens .......................................................... 3-9 3.5 --anachronisms, --no_anachronisms ..................................................................... 3-10 3.6 --apcs=qualifier...qualifier ...................................................................................... 3-11 3.7 --arm ...................................................................................................................... 3-15 3.8 --arm_linux ............................................................................................................. 3-16 3.9 --arm_linux_config_file=path ................................................................................. 3-18 3.10 --arm_linux_configure ............................................................................................ 3-19 3.11 --arm_linux_paths .................................................................................................. 3-21 3.12 --arm_only .............................................................................................................. 3-23 3.13 --asm ...................................................................................................................... 3-24 3.14 --asm_dir=directory_name ..................................................................................... 3-25 3.15 --autoinline, --no_autoinline ................................................................................... 3-26 ARM DUI 0491I Copyright © 2010-2013 ARM. All rights reserved. iii ID012213 Non-Confidential Contents 3.16 --bigend .................................................................................................................. 3-27 3.17 --bitband ................................................................................................................. 3-28 3.18 --brief_diagnostics, --no_brief_diagnostics ............................................................ 3-29 3.19 --bss_threshold=num ............................................................................................. 3-30 3.20 -c ............................................................................................................................ 3-31 3.21 -C ........................................................................................................................... 3-32 3.22 --c90 ....................................................................................................................... 3-33 3.23 --c99 ....................................................................................................................... 3-34 3.24 --code_gen, --no_code_gen .................................................................................. 3-35 3.25 --compatible=name ................................................................................................ 3-36 3.26 --compile_all_input, --no_compile_all_input .......................................................... 3-37 3.27 --conditionalize, --no_conditionalize ...................................................................... 3-38 3.28 --configure_cpp_headers=path .............................................................................. 3-39 3.29 --configure_extra_includes=paths ......................................................................... 3-40 3.30 --configure_extra_libraries=paths .......................................................................... 3-41 3.31 --configure_gas=path ............................................................................................. 3-42 3.32 --configure_gcc=path ............................................................................................. 3-43 3.33 --configure_gcc_version=version ........................................................................... 3-44 3.34 --configure_gld=path .............................................................................................. 3-45 3.35 --configure_sysroot=path ....................................................................................... 3-46 3.36 --cpp ....................................................................................................................... 3-47 3.37 --cpu=list ................................................................................................................ 3-48 3.38 --cpu=name ........................................................................................................... 3-49 3.39 --create_pch=filename ........................................................................................... 3-53 3.40 -Dname[(parm-list)][=def] ....................................................................................... 3-54 3.41 --data_reorder, --no_data_reorder ......................................................................... 3-55 3.42 --debug, --no_debug .............................................................................................. 3-56 3.43 --debug_macros, --no_debug_macros .................................................................