Systems/C C Compiler Manual

Systems/C C Compiler Manual

Systems/C Compiler Version 2.25 Copyright c 2020, Dignus, LLC Systems/C C Compiler Version 2.25 i Copyright c 2020 Dignus LLC, 8378 Six Forks Road Suite 203, Raleigh NC, 27615. World rights reserved. No part of this publication may be stored in a retrieval system, transmitted, or reproduced in any way, including but not limited to pho- tocopy, photograph, magnetic or other record, without the prior agreement and written permission of the publisher. This product includes software developed by the University of California, Berkeley and its contributors. Copyright (c) 1990, 1993 The Regents of the University of California. All rights reserved. Redistribution and use in source and binary forms, with or without modifica- tion, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. All advertising materials mentioning features or use of this software must display the following acknowledgement: This product includes software developed by the University of California, Berkeley and its contributors. 4. Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIB- UTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, IN- CLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIB- UTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPE- CIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTER- RUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. This product includes software developed by Thomas Pornin, which contains the following copyright notices: Copyright c Thomas Pornin 1999, 2000 Redistribution and use in source and binary forms, with or without modifica- tion, are permitted provided that the following conditions are met: ii 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The name of the authors may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED “AS IS” AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, IN- DIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROF- ITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABIL- ITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF AD- VISED OF THE POSSIBILITY OF SUCH DAMAGE. This product includes software developed by International Business Machines Cor- poration, which contains the following copyright notices: Copyright (c) 1995-2005 International Business Machines Corporation and oth- ers All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ”Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, provided that the above copyright notice(s) and this permission notice appear in all copies of the Software and that both the above copyright notice(s) and this permission notice appear in supporting documentation. IBM, S/390, zSeries, z/Arch, z/Architecture, OS/390, zOS, MVS, VM, CMS, HLASM, and High Level Assembler are registered trademarks of International Business Ma- chines Corporation. UNIX is a registered trademark in the United States and/or other countries licensed exclusively through X/Open Company Limited. Microsoft, Windows, and Windows NT are trademarks of Microsoft Corporation in the United States and other countries. Dignus, Systems/C, Systems/C++ and Systems/ASM are registered trademarks of Dignus, LLC. iii iv Contents How To Use This Book 1 Systems/C Overview 3 Implementation Definitions 5 Implementation limits ............................. 5 EBCDIC character set ............................. 5 Basic Data Types and Alignments ...................... 6 Return values .................................. 7 Compiling, Linking and Running Programs 9 Running the compiler, DCC .......................... 9 In OS/390 or z/OS ............................ 9 In Windows ................................ 10 In the UNIX environment ........................ 10 Include File Processing ............................. 11 In OS/390 and z/OS ........................... 11 In UNIX and Windows .......................... 12 Header filename mapping ($$HDRMAP) ................ 12 Description of options ............................. 15 Detailed description of the options ...................... 22 The –D option (define a macro) ..................... 22 The –I option (Specify additional locations to look for included files) 22 The –iquote dir option (Add dir to the list of directories to examine for local include files) ...................... 23 The –isystem dir option (Add dir to the list of system include direc- tories) ............................... 23 The –idirafter dir option (Add dir to the list of directories to search after the system include directories) .............. 23 The –Sdir option (Add dir to the list of directories to examine for include files, honoring IBM’s SEARCH semantics) ........ 23 The –nodiginc option (Disable “System Include” processing) .... 24 The –ofile option (Specify the name of the generated output file) .. 24 The –E option (preprocess only) .................... 24 The –femitdefs option (include #define values in preprocessor output) 25 The –M[=filename] option (generate a source dependence list) .... 25 Systems/C v The –MT target] option (specify the target for the dependence list) . 25 The –MF filename option (specify the name of the file for dependence list) ................................ 25 The –fdep[=filename] option (generate a source dependence list dur- ing regular compilation) ..................... 26 The –g option (debuggable code) .................... 26 The –g0 option (Disable debuggable code and debugging information) 26 The –gdwarf option (generate DWARF debugging information) ... 26 The –gstabs option (generate STABS debugging information) .... 27 The –gisd option (generate ISD debugging information) ....... 27 The –fansi bitfield packing option (ANSI rules for bitfield allocation) 27 The –nonint bitfield option (Allow any integral in bitfield declaration 28 The –fanonstruct option (Allow Microsoft’s anonymous structure ex- tension) .............................. 28 The –fc370=version option (Specify IBM C compatibility) ...... 28 The –fxplink option (Use eXtra Performance Linkage) ........ 29 The –fdll option (In IBM compatibility mode, compile for DLL support) 29 The –fexportall option (In IBM compatibility mode, export all defined data and functions ) ....................... 29 The –fcxx comments and –fno cxx comments options (Enable and disable recognition of C++-style // comments) ........ 30 The –fep=name option (Specify entry point) ............. 30 The –fprol=macro option (Specify alternate prologue macro) .... 30 The –fgnu89 inline and –fno gnu89 inline options (Control use of legacy gcc inlining rules) ........................ 32 The –finline[=x[:y:z]] and –fnoinline options (Control inlining opti- mization) ............................. 33 The –O[n] option (Set optimization level) ............... 34 The –fprv=macro option (Specify alternate PRV address macro) .. 34 The –fepil=macro option (Specify alternate epilogue macro) ..... 34 The –lnameaddr and –fnolnameaddr macros (Enable or disable gen- eration of Logical Name Address info) ............. 35 The –fopts[=macro] option (Request interesting options noted at top of generated assembly) ...................... 35 The –fendmacro[=text] option (Specify text to appear before the END statement) ............................ 35 The –frsa[=size] option (Specify the amount of space the compiler reserves for the Register Save Area) .............. 36 The –fhlasm option (Generated assembly source is to be assembled with HLASM instead of DASM) ................ 36 The –finstrument functions option (Request function beginning/ending instrumentation) ......................... 36 The –fframe base=N option (Specify register to use for addressing automatic

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    288 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us