About ILE C/C++ Compiler Reference
Total Page:16
File Type:pdf, Size:1020Kb
IBM i 7.3 Programming IBM Rational Development Studio for i ILE C/C++ Compiler Reference IBM SC09-4816-07 Note Before using this information and the product it supports, read the information in “Notices” on page 121. This edition applies to IBM® Rational® Development Studio for i (product number 5770-WDS) and to all subsequent releases and modifications until otherwise indicated in new editions. This version does not run on all reduced instruction set computer (RISC) models nor does it run on CISC models. This document may contain references to Licensed Internal Code. Licensed Internal Code is Machine Code and is licensed to you under the terms of the IBM License Agreement for Machine Code. © Copyright International Business Machines Corporation 1993, 2015. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents ILE C/C++ Compiler Reference............................................................................... 1 What is new for IBM i 7.3.............................................................................................................................3 PDF file for ILE C/C++ Compiler Reference.................................................................................................5 About ILE C/C++ Compiler Reference......................................................................................................... 7 Prerequisite and Related Information................................................................................................... 7 Install Licensed Program Information................................................................................................... 7 A Note About Examples..........................................................................................................................7 Control Language Commands................................................................................................................ 7 How to Read the Syntax Diagrams.........................................................................................................7 Industry Standards.................................................................................................................................9 Predefined Macros..................................................................................................................................... 11 ANSI/ISO Standard Predefined Macros...............................................................................................11 ILE C/C++ Predefined Macros..............................................................................................................12 ILE C/C++ Pragmas....................................................................................................................................19 Pragma directive syntax.......................................................................................................................19 Scope of Pragma directives..................................................................................................................19 Summary of Pragma Directives............................................................................................................20 Individual Pragma Descriptions...........................................................................................................21 argopt.............................................................................................................................................. 21 argument.........................................................................................................................................23 cancel_handler............................................................................................................................... 24 chars................................................................................................................................................25 checkout..........................................................................................................................................25 comment......................................................................................................................................... 26 convert............................................................................................................................................ 27 datamodel....................................................................................................................................... 27 define.............................................................................................................................................. 28 descriptor........................................................................................................................................29 disable_handler.............................................................................................................................. 30 disjoint.............................................................................................................................................30 do_not_instantiate..........................................................................................................................31 enum............................................................................................................................................... 32 exception_handler.......................................................................................................................... 36 hashome..........................................................................................................................................39 implementation...............................................................................................................................39 info...................................................................................................................................................39 inline................................................................................................................................................41 ishome.............................................................................................................................................41 isolated_call.................................................................................................................................... 42 linkage............................................................................................................................................. 42 map..................................................................................................................................................44 mapinc.............................................................................................................................................45 margins............................................................................................................................................47 namemangling................................................................................................................................ 47 namemanglingrule..........................................................................................................................48 noargv0........................................................................................................................................... 49 iii noinline (function)...........................................................................................................................50 nomargins....................................................................................................................................... 50 nosequence.....................................................................................................................................50 nosigtrunc....................................................................................................................................... 50 pack.................................................................................................................................................51 Related Operators and Specifiers............................................................................................. 52 __align Specifier.................................................................................................................. 52 _Packed Specifier................................................................................................................ 53 __alignof Operator............................................................................................................... 53 Examples................................................................................................................................... 53 page.................................................................................................................................................56 pagesize.......................................................................................................................................... 56 pointer.............................................................................................................................................56 priority.............................................................................................................................................57