home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / Source / GNU / gcc / gcc.info-1 (.txt) < prev    next >
GNU Info File  |  1996-06-29  |  43KB  |  709 lines

  1. This is Info file gcc.info, produced by Makeinfo-1.55 from the input
  2. file gcc.texi.
  3.    This file documents the use and the internals of the GNU compiler.
  4.    Published by the Free Software Foundation 59 Temple Place - Suite 330
  5. Boston, MA 02111-1307 USA
  6.    Copyright (C) 1988, 1989, 1992, 1993, 1994, 1995 Free Software
  7. Foundation, Inc.
  8.    Permission is granted to make and distribute verbatim copies of this
  9. manual provided the copyright notice and this permission notice are
  10. preserved on all copies.
  11.    Permission is granted to copy and distribute modified versions of
  12. this manual under the conditions for verbatim copying, provided also
  13. that the sections entitled "GNU General Public License," "Funding for
  14. Free Software," and "Protect Your Freedom--Fight `Look And Feel'" are
  15. included exactly as in the original, and provided that the entire
  16. resulting derived work is distributed under the terms of a permission
  17. notice identical to this one.
  18.    Permission is granted to copy and distribute translations of this
  19. manual into another language, under the above conditions for modified
  20. versions, except that the sections entitled "GNU General Public
  21. License," "Funding for Free Software," and "Protect Your Freedom--Fight
  22. `Look And Feel'", and this permission notice, may be included in
  23. translations approved by the Free Software Foundation instead of in the
  24. original English.
  25. File: gcc.info,  Node: Top,  Next: Copying,  Up: (DIR)
  26. Introduction
  27. ************
  28.    This manual documents how to run, install and port the GNU compiler,
  29. as well as its new features and incompatibilities, and how to report
  30. bugs.  It corresponds to GNU CC version 2.7.2.
  31. * Menu:
  32. * Copying::         GNU General Public License says
  33.                      how you can copy and share GNU CC.
  34. * Contributors::    People who have contributed to GNU CC.
  35. * Funding::         How to help assure funding for free software.
  36. * Look and Feel::   Protect your freedom--fight "look and feel".
  37. * G++ and GCC::     You can compile C or C++ programs.
  38. * Invoking GCC::    Command options supported by `gcc'.
  39. * Installation::    How to configure, compile and install GNU CC.
  40. * C Extensions::    GNU extensions to the C language family.
  41. * C++ Extensions::  GNU extensions to the C++ language.
  42. * Trouble::         If you have trouble installing GNU CC.
  43. * Bugs::            How, why and where to report bugs.
  44. * Service::         How to find suppliers of support for GNU CC.
  45. * VMS::             Using GNU CC on VMS.
  46. * Portability::     Goals of GNU CC's portability features.
  47. * Interface::       Function-call interface of GNU CC output.
  48. * Passes::          Order of passes, what they do, and what each file is for.
  49. * RTL::             The intermediate representation that most passes work on.
  50. * Machine Desc::    How to write machine description instruction patterns.
  51. * Target Macros::   How to write the machine description C macros.
  52. * Config::          Writing the `xm-MACHINE.h' file.
  53. * Fragments::       Writing the `t-TARGET' and `x-HOST' files.
  54. * Index::        Index of concepts and symbol names.
  55. File: gcc.info,  Node: Copying,  Next: Contributors,  Prev: Top,  Up: Top
  56. GNU GENERAL PUBLIC LICENSE
  57. **************************
  58.                          Version 2, June 1991
  59.      Copyright (C) 1989, 1991 Free Software Foundation, Inc.
  60.      59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
  61.      
  62.      Everyone is permitted to copy and distribute verbatim copies
  63.      of this license document, but changing it is not allowed.
  64. Preamble
  65. ========
  66.    The licenses for most software are designed to take away your
  67. freedom to share and change it.  By contrast, the GNU General Public
  68. License is intended to guarantee your freedom to share and change free
  69. software--to make sure the software is free for all its users.  This
  70. General Public License applies to most of the Free Software
  71. Foundation's software and to any other program whose authors commit to
  72. using it.  (Some other Free Software Foundation software is covered by
  73. the GNU Library General Public License instead.)  You can apply it to
  74. your programs, too.
  75.    When we speak of free software, we are referring to freedom, not
  76. price.  Our General Public Licenses are designed to make sure that you
  77. have the freedom to distribute copies of free software (and charge for
  78. this service if you wish), that you receive source code or can get it
  79. if you want it, that you can change the software or use pieces of it in
  80. new free programs; and that you know you can do these things.
  81.    To protect your rights, we need to make restrictions that forbid
  82. anyone to deny you these rights or to ask you to surrender the rights.
  83. These restrictions translate to certain responsibilities for you if you
  84. distribute copies of the software, or if you modify it.
  85.    For example, if you distribute copies of such a program, whether
  86. gratis or for a fee, you must give the recipients all the rights that
  87. you have.  You must make sure that they, too, receive or can get the
  88. source code.  And you must show them these terms so they know their
  89. rights.
  90.    We protect your rights with two steps: (1) copyright the software,
  91. and (2) offer you this license which gives you legal permission to copy,
  92. distribute and/or modify the software.
  93.    Also, for each author's protection and ours, we want to make certain
  94. that everyone understands that there is no warranty for this free
  95. software.  If the software is modified by someone else and passed on, we
  96. want its recipients to know that what they have is not the original, so
  97. that any problems introduced by others will not reflect on the original
  98. authors' reputations.
  99.    Finally, any free program is threatened constantly by software
  100. patents.  We wish to avoid the danger that redistributors of a free
  101. program will individually obtain patent licenses, in effect making the
  102. program proprietary.  To prevent this, we have made it clear that any
  103. patent must be licensed for everyone's free use or not licensed at all.
  104.    The precise terms and conditions for copying, distribution and
  105. modification follow.
  106.     TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
  107.   0. This License applies to any program or other work which contains a
  108.      notice placed by the copyright holder saying it may be distributed
  109.      under the terms of this General Public License.  The "Program",
  110.      below, refers to any such program or work, and a "work based on
  111.      the Program" means either the Program or any derivative work under
  112.      copyright law: that is to say, a work containing the Program or a
  113.      portion of it, either verbatim or with modifications and/or
  114.      translated into another language.  (Hereinafter, translation is
  115.      included without limitation in the term "modification".)  Each
  116.      licensee is addressed as "you".
  117.      Activities other than copying, distribution and modification are
  118.      not covered by this License; they are outside its scope.  The act
  119.      of running the Program is not restricted, and the output from the
  120.      Program is covered only if its contents constitute a work based on
  121.      the Program (independent of having been made by running the
  122.      Program).  Whether that is true depends on what the Program does.
  123.   1. You may copy and distribute verbatim copies of the Program's
  124.      source code as you receive it, in any medium, provided that you
  125.      conspicuously and appropriately publish on each copy an appropriate
  126.      copyright notice and disclaimer of warranty; keep intact all the
  127.      notices that refer to this License and to the absence of any
  128.      warranty; and give any other recipients of the Program a copy of
  129.      this License along with the Program.
  130.      You may charge a fee for the physical act of transferring a copy,
  131.      and you may at your option offer warranty protection in exchange
  132.      for a fee.
  133.   2. You may modify your copy or copies of the Program or any portion
  134.      of it, thus forming a work based on the Program, and copy and
  135.      distribute such modifications or work under the terms of Section 1
  136.      above, provided that you also meet all of these conditions:
  137.        a. You must cause the modified files to carry prominent notices
  138.           stating that you changed the files and the date of any change.
  139.        b. You must cause any work that you distribute or publish, that
  140.           in whole or in part contains or is derived from the Program
  141.           or any part thereof, to be licensed as a whole at no charge
  142.           to all third parties under the terms of this License.
  143.        c. If the modified program normally reads commands interactively
  144.           when run, you must cause it, when started running for such
  145.           interactive use in the most ordinary way, to print or display
  146.           an announcement including an appropriate copyright notice and
  147.           a notice that there is no warranty (or else, saying that you
  148.           provide a warranty) and that users may redistribute the
  149.           program under these conditions, and telling the user how to
  150.           view a copy of this License.  (Exception: if the Program
  151.           itself is interactive but does not normally print such an
  152.           announcement, your work based on the Program is not required
  153.           to print an announcement.)
  154.      These requirements apply to the modified work as a whole.  If
  155.      identifiable sections of that work are not derived from the
  156.      Program, and can be reasonably considered independent and separate
  157.      works in themselves, then this License, and its terms, do not
  158.      apply to those sections when you distribute them as separate
  159.      works.  But when you distribute the same sections as part of a
  160.      whole which is a work based on the Program, the distribution of
  161.      the whole must be on the terms of this License, whose permissions
  162.      for other licensees extend to the entire whole, and thus to each
  163.      and every part regardless of who wrote it.
  164.      Thus, it is not the intent of this section to claim rights or
  165.      contest your rights to work written entirely by you; rather, the
  166.      intent is to exercise the right to control the distribution of
  167.      derivative or collective works based on the Program.
  168.      In addition, mere aggregation of another work not based on the
  169.      Program with the Program (or with a work based on the Program) on
  170.      a volume of a storage or distribution medium does not bring the
  171.      other work under the scope of this License.
  172.   3. You may copy and distribute the Program (or a work based on it,
  173.      under Section 2) in object code or executable form under the terms
  174.      of Sections 1 and 2 above provided that you also do one of the
  175.      following:
  176.        a. Accompany it with the complete corresponding machine-readable
  177.           source code, which must be distributed under the terms of
  178.           Sections 1 and 2 above on a medium customarily used for
  179.           software interchange; or,
  180.        b. Accompany it with a written offer, valid for at least three
  181.           years, to give any third party, for a charge no more than your
  182.           cost of physically performing source distribution, a complete
  183.           machine-readable copy of the corresponding source code, to be
  184.           distributed under the terms of Sections 1 and 2 above on a
  185.           medium customarily used for software interchange; or,
  186.        c. Accompany it with the information you received as to the offer
  187.           to distribute corresponding source code.  (This alternative is
  188.           allowed only for noncommercial distribution and only if you
  189.           received the program in object code or executable form with
  190.           such an offer, in accord with Subsection b above.)
  191.      The source code for a work means the preferred form of the work for
  192.      making modifications to it.  For an executable work, complete
  193.      source code means all the source code for all modules it contains,
  194.      plus any associated interface definition files, plus the scripts
  195.      used to control compilation and installation of the executable.
  196.      However, as a special exception, the source code distributed need
  197.      not include anything that is normally distributed (in either
  198.      source or binary form) with the major components (compiler,
  199.      kernel, and so on) of the operating system on which the executable
  200.      runs, unless that component itself accompanies the executable.
  201.      If distribution of executable or object code is made by offering
  202.      access to copy from a designated place, then offering equivalent
  203.      access to copy the source code from the same place counts as
  204.      distribution of the source code, even though third parties are not
  205.      compelled to copy the source along with the object code.
  206.   4. You may not copy, modify, sublicense, or distribute the Program
  207.      except as expressly provided under this License.  Any attempt
  208.      otherwise to copy, modify, sublicense or distribute the Program is
  209.      void, and will automatically terminate your rights under this
  210.      License.  However, parties who have received copies, or rights,
  211.      from you under this License will not have their licenses
  212.      terminated so long as such parties remain in full compliance.
  213.   5. You are not required to accept this License, since you have not
  214.      signed it.  However, nothing else grants you permission to modify
  215.      or distribute the Program or its derivative works.  These actions
  216.      are prohibited by law if you do not accept this License.
  217.      Therefore, by modifying or distributing the Program (or any work
  218.      based on the Program), you indicate your acceptance of this
  219.      License to do so, and all its terms and conditions for copying,
  220.      distributing or modifying the Program or works based on it.
  221.   6. Each time you redistribute the Program (or any work based on the
  222.      Program), the recipient automatically receives a license from the
  223.      original licensor to copy, distribute or modify the Program
  224.      subject to these terms and conditions.  You may not impose any
  225.      further restrictions on the recipients' exercise of the rights
  226.      granted herein.  You are not responsible for enforcing compliance
  227.      by third parties to this License.
  228.   7. If, as a consequence of a court judgment or allegation of patent
  229.      infringement or for any other reason (not limited to patent
  230.      issues), conditions are imposed on you (whether by court order,
  231.      agreement or otherwise) that contradict the conditions of this
  232.      License, they do not excuse you from the conditions of this
  233.      License.  If you cannot distribute so as to satisfy simultaneously
  234.      your obligations under this License and any other pertinent
  235.      obligations, then as a consequence you may not distribute the
  236.      Program at all.  For example, if a patent license would not permit
  237.      royalty-free redistribution of the Program by all those who
  238.      receive copies directly or indirectly through you, then the only
  239.      way you could satisfy both it and this License would be to refrain
  240.      entirely from distribution of the Program.
  241.      If any portion of this section is held invalid or unenforceable
  242.      under any particular circumstance, the balance of the section is
  243.      intended to apply and the section as a whole is intended to apply
  244.      in other circumstances.
  245.      It is not the purpose of this section to induce you to infringe any
  246.      patents or other property right claims or to contest validity of
  247.      any such claims; this section has the sole purpose of protecting
  248.      the integrity of the free software distribution system, which is
  249.      implemented by public license practices.  Many people have made
  250.      generous contributions to the wide range of software distributed
  251.      through that system in reliance on consistent application of that
  252.      system; it is up to the author/donor to decide if he or she is
  253.      willing to distribute software through any other system and a
  254.      licensee cannot impose that choice.
  255.      This section is intended to make thoroughly clear what is believed
  256.      to be a consequence of the rest of this License.
  257.   8. If the distribution and/or use of the Program is restricted in
  258.      certain countries either by patents or by copyrighted interfaces,
  259.      the original copyright holder who places the Program under this
  260.      License may add an explicit geographical distribution limitation
  261.      excluding those countries, so that distribution is permitted only
  262.      in or among countries not thus excluded.  In such case, this
  263.      License incorporates the limitation as if written in the body of
  264.      this License.
  265.   9. The Free Software Foundation may publish revised and/or new
  266.      versions of the General Public License from time to time.  Such
  267.      new versions will be similar in spirit to the present version, but
  268.      may differ in detail to address new problems or concerns.
  269.      Each version is given a distinguishing version number.  If the
  270.      Program specifies a version number of this License which applies
  271.      to it and "any later version", you have the option of following
  272.      the terms and conditions either of that version or of any later
  273.      version published by the Free Software Foundation.  If the Program
  274.      does not specify a version number of this License, you may choose
  275.      any version ever published by the Free Software Foundation.
  276.  10. If you wish to incorporate parts of the Program into other free
  277.      programs whose distribution conditions are different, write to the
  278.      author to ask for permission.  For software which is copyrighted
  279.      by the Free Software Foundation, write to the Free Software
  280.      Foundation; we sometimes make exceptions for this.  Our decision
  281.      will be guided by the two goals of preserving the free status of
  282.      all derivatives of our free software and of promoting the sharing
  283.      and reuse of software generally.
  284.                                 NO WARRANTY
  285.  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO
  286.      WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE
  287.      LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
  288.      HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT
  289.      WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT
  290.      NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  291.      FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS TO THE
  292.      QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
  293.      PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY
  294.      SERVICING, REPAIR OR CORRECTION.
  295.  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
  296.      WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY
  297.      MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE
  298.      LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL,
  299.      INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR
  300.      INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
  301.      DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU
  302.      OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY
  303.      OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN
  304.      ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
  305.                       END OF TERMS AND CONDITIONS
  306. How to Apply These Terms to Your New Programs
  307. =============================================
  308.    If you develop a new program, and you want it to be of the greatest
  309. possible use to the public, the best way to achieve this is to make it
  310. free software which everyone can redistribute and change under these
  311. terms.
  312.    To do so, attach the following notices to the program.  It is safest
  313. to attach them to the start of each source file to most effectively
  314. convey the exclusion of warranty; and each file should have at least
  315. the "copyright" line and a pointer to where the full notice is found.
  316.      ONE LINE TO GIVE THE PROGRAM'S NAME AND A BRIEF IDEA OF WHAT IT DOES.
  317.      Copyright (C) 19YY  NAME OF AUTHOR
  318.      
  319.      This program is free software; you can redistribute it and/or modify
  320.      it under the terms of the GNU General Public License as published by
  321.      the Free Software Foundation; either version 2 of the License, or
  322.      (at your option) any later version.
  323.      
  324.      This program is distributed in the hope that it will be useful,
  325.      but WITHOUT ANY WARRANTY; without even the implied warranty of
  326.      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  327.      GNU General Public License for more details.
  328.      
  329.      You should have received a copy of the GNU General Public License
  330.      along with this program; if not, write to the Free Software
  331.      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  332.    Also add information on how to contact you by electronic and paper
  333. mail.
  334.    If the program is interactive, make it output a short notice like
  335. this when it starts in an interactive mode:
  336.      Gnomovision version 69, Copyright (C) 19YY NAME OF AUTHOR
  337.      Gnomovision comes with ABSOLUTELY NO WARRANTY; for details
  338.      type `show w'.
  339.      This is free software, and you are welcome to redistribute it
  340.      under certain conditions; type `show c' for details.
  341.    The hypothetical commands `show w' and `show c' should show the
  342. appropriate parts of the General Public License.  Of course, the
  343. commands you use may be called something other than `show w' and `show
  344. c'; they could even be mouse-clicks or menu items--whatever suits your
  345. program.
  346.    You should also get your employer (if you work as a programmer) or
  347. your school, if any, to sign a "copyright disclaimer" for the program,
  348. if necessary.  Here is a sample; alter the names:
  349.      Yoyodyne, Inc., hereby disclaims all copyright interest in the program
  350.      `Gnomovision' (which makes passes at compilers) written by James Hacker.
  351.      
  352.      SIGNATURE OF TY COON, 1 April 1989
  353.      Ty Coon, President of Vice
  354.    This General Public License does not permit incorporating your
  355. program into proprietary programs.  If your program is a subroutine
  356. library, you may consider it more useful to permit linking proprietary
  357. applications with the library.  If this is what you want to do, use the
  358. GNU Library General Public License instead of this License.
  359. File: gcc.info,  Node: Contributors,  Next: Funding,  Prev: Copying,  Up: Top
  360. Contributors to GNU CC
  361. **********************
  362.    In addition to Richard Stallman, several people have written parts
  363. of GNU CC.
  364.    * The idea of using RTL and some of the optimization ideas came from
  365.      the program PO written at the University of Arizona by Jack
  366.      Davidson and Christopher Fraser.  See "Register Allocation and
  367.      Exhaustive Peephole Optimization", Software Practice and
  368.      Experience 14 (9), Sept. 1984, 857-866.
  369.    * Paul Rubin wrote most of the preprocessor.
  370.    * Leonard Tower wrote parts of the parser, RTL generator, and RTL
  371.      definitions, and of the Vax machine description.
  372.    * Ted Lemon wrote parts of the RTL reader and printer.
  373.    * Jim Wilson implemented loop strength reduction and some other loop
  374.      optimizations.
  375.    * Nobuyuki Hikichi of Software Research Associates, Tokyo,
  376.      contributed the support for the Sony NEWS machine.
  377.    * Charles LaBrec contributed the support for the Integrated Solutions
  378.      68020 system.
  379.    * Michael Tiemann of Cygnus Support wrote the front end for C++, as
  380.      well as the support for inline functions and instruction
  381.      scheduling.  Also the descriptions of the National Semiconductor
  382.      32000 series cpu, the SPARC cpu and part of the Motorola 88000 cpu.
  383.    * Gerald Baumgartner added the signature extension to the C++
  384.      front-end.
  385.    * Jan Stein of the Chalmers Computer Society provided support for
  386.      Genix, as well as part of the 32000 machine description.
  387.    * Randy Smith finished the Sun FPA support.
  388.    * Robert Brown implemented the support for Encore 32000 systems.
  389.    * David Kashtan of SRI adapted GNU CC to VMS.
  390.    * Alex Crain provided changes for the 3b1.
  391.    * Greg Satz and Chris Hanson assisted in making GNU CC work on HP-UX
  392.      for the 9000 series 300.
  393.    * William Schelter did most of the work on the Intel 80386 support.
  394.    * Christopher Smith did the port for Convex machines.
  395.    * Paul Petersen wrote the machine description for the Alliant FX/8.
  396.    * Dario Dariol contributed the four varieties of sample programs
  397.      that print a copy of their source.
  398.    * Alain Lichnewsky ported GNU CC to the Mips cpu.
  399.    * Devon Bowen, Dale Wiles and Kevin Zachmann ported GNU CC to the
  400.      Tahoe.
  401.    * Jonathan Stone wrote the machine description for the Pyramid
  402.      computer.
  403.    * Gary Miller ported GNU CC to Charles River Data Systems machines.
  404.    * Richard Kenner of the New York University Ultracomputer Research
  405.      Laboratory wrote the machine descriptions for the AMD 29000, the
  406.      DEC Alpha, the IBM RT PC, and the IBM RS/6000 as well as the
  407.      support for instruction attributes.  He also made changes to
  408.      better support RISC processors including changes to common
  409.      subexpression elimination, strength reduction, function calling
  410.      sequence handling, and condition code support, in addition to
  411.      generalizing the code for frame pointer elimination.
  412.    * Richard Kenner and Michael Tiemann jointly developed reorg.c, the
  413.      delay slot scheduler.
  414.    * Mike Meissner and Tom Wood of Data General finished the port to the
  415.      Motorola 88000.
  416.    * Masanobu Yuhara of Fujitsu Laboratories implemented the machine
  417.      description for the Tron architecture (specifically, the Gmicro).
  418.    * NeXT, Inc. donated the front end that supports the Objective C
  419.      language.
  420.    * James van Artsdalen wrote the code that makes efficient use of the
  421.      Intel 80387 register stack.
  422.    * Mike Meissner at the Open Software Foundation finished the port to
  423.      the MIPS cpu, including adding ECOFF debug support, and worked on
  424.      the Intel port for the Intel 80386 cpu.
  425.    * Ron Guilmette implemented the `protoize' and `unprotoize' tools,
  426.      the support for Dwarf symbolic debugging information, and much of
  427.      the support for System V Release 4.  He has also worked heavily on
  428.      the Intel 386 and 860 support.
  429.    * Torbjorn Granlund implemented multiply- and divide-by-constant
  430.      optimization, improved long long support, and improved leaf
  431.      function register allocation.
  432.    * Mike Stump implemented the support for Elxsi 64 bit CPU.
  433.    * John Wehle added the machine description for the Western Electric
  434.      32000 processor used in several 3b series machines (no relation to
  435.      the National Semiconductor 32000 processor).
  436.    * Holger Teutsch provided the support for the Clipper cpu.
  437.    * Kresten Krab Thorup wrote the run time support for the Objective C
  438.      language.
  439.    * Stephen Moshier contributed the floating point emulator that
  440.      assists in cross-compilation and permits support for floating
  441.      point numbers wider than 64 bits.
  442.    * David Edelsohn contributed the changes to RS/6000 port to make it
  443.      support the PowerPC and POWER2 architectures.
  444.    * Steve Chamberlain wrote the support for the Hitachi SH processor.
  445.    * Peter Schauer wrote the code to allow debugging to work on the
  446.      Alpha.
  447.    * Oliver M. Kellogg of Deutsche Aerospace contributed the port to the
  448.      MIL-STD-1750A.
  449.    * Michael K. Gschwind contributed the port to the PDP-11.
  450. File: gcc.info,  Node: Funding,  Next: Look and Feel,  Prev: Contributors,  Up: Top
  451. Funding Free Software
  452. *********************
  453.    If you want to have more free software a few years from now, it makes
  454. sense for you to help encourage people to contribute funds for its
  455. development.  The most effective approach known is to encourage
  456. commercial redistributors to donate.
  457.    Users of free software systems can boost the pace of development by
  458. encouraging for-a-fee distributors to donate part of their selling price
  459. to free software developers--the Free Software Foundation, and others.
  460.    The way to convince distributors to do this is to demand it and
  461. expect it from them.  So when you compare distributors, judge them
  462. partly by how much they give to free software development.  Show
  463. distributors they must compete to be the one who gives the most.
  464.    To make this approach work, you must insist on numbers that you can
  465. compare, such as, "We will donate ten dollars to the Frobnitz project
  466. for each disk sold."  Don't be satisfied with a vague promise, such as
  467. "A portion of the profits are donated," since it doesn't give a basis
  468. for comparison.
  469.    Even a precise fraction "of the profits from this disk" is not very
  470. meaningful, since creative accounting and unrelated business decisions
  471. can greatly alter what fraction of the sales price counts as profit.
  472. If the price you pay is $50, ten percent of the profit is probably less
  473. than a dollar; it might be a few cents, or nothing at all.
  474.    Some redistributors do development work themselves.  This is useful
  475. too; but to keep everyone honest, you need to inquire how much they do,
  476. and what kind.  Some kinds of development make much more long-term
  477. difference than others.  For example, maintaining a separate version of
  478. a program contributes very little; maintaining the standard version of a
  479. program for the whole community contributes much.  Easy new ports
  480. contribute little, since someone else would surely do them; difficult
  481. ports such as adding a new CPU to the GNU C compiler contribute more;
  482. major new features or packages contribute the most.
  483.    By establishing the idea that supporting further development is "the
  484. proper thing to do" when distributing free software for a fee, we can
  485. assure a steady flow of resources into making more free software.
  486.      Copyright (C) 1994 Free Software Foundation, Inc.
  487.      Verbatim copying and redistribution of this section is permitted
  488.      without royalty; alteration is not permitted.
  489. File: gcc.info,  Node: Look and Feel,  Next: G++ and GCC,  Prev: Funding,  Up: Top
  490. Protect Your Freedom--Fight "Look And Feel"
  491. *******************************************
  492.      This section is a political message from the League for Programming
  493.      Freedom to the users of GNU CC.  We have included it here because
  494.      the issue of interface copyright is important to the GNU project.
  495.    Apple, Lotus, and now CDC have tried to create a new form of legal
  496. monopoly: a copyright on a user interface.
  497.    An interface is a kind of language--a set of conventions for
  498. communication between two entities, human or machine.  Until a few years
  499. ago, the law seemed clear: interfaces were outside the domain of
  500. copyright, so programmers could program freely and implement whatever
  501. interface the users demanded.  Imitating de-facto standard interfaces,
  502. sometimes with improvements, was standard practice in the computer
  503. field.  These improvements, if accepted by the users, caught on and
  504. became the norm; in this way, much progress took place.
  505.    Computer users, and most software developers, were happy with this
  506. state of affairs.  However, large companies such as Apple and Lotus
  507. would prefer a different system--one in which they can own interfaces
  508. and thereby rid themselves of all serious competitors.  They hope that
  509. interface copyright will give them, in effect, monopolies on major
  510. classes of software.
  511.    Other large companies such as IBM and Digital also favor interface
  512. monopolies, for the same reason: if languages become property, they
  513. expect to own many de-facto standard languages.  But Apple and Lotus are
  514. the ones who have actually sued.  Apple's lawsuit was defeated, for
  515. reasons only partly related to the general issue of interface copyright.
  516.    Lotus won lawsuits against two small companies, which were thus put
  517. out of business.  Then Lotus sued Borland; Lotus won in the trial court
  518. (no surprise, since it was the same court that had ruled for Lotus twice
  519. before), but the court of appeals ruled in favor of Borland, which was
  520. assisted by a friend-of-the-court brief from the League for Programming
  521. Freedom.
  522.    Lotus appealed the case to the Supreme Court, which heard the case
  523. but was unable to reach a decision.  This failure means that the appeals
  524. court decision stands, in one portion of the United States, and may
  525. influence the other appeals courts, but it does not set a nationwide
  526. precedent.  The battle is not over, and it is not limited to the United
  527. States.
  528.    The battle is extending into other areas of software as well.  In
  529. 1995 a company that produced a simulator for a CDC computer was shut
  530. down by a copyright lawsuit, in which CDC charged that the simulator
  531. infringed the copyright on the manuals for the computer.
  532.    If the monopolists get their way, they will hobble the software
  533. field:
  534.    * Gratuitous incompatibilities will burden users.  Imagine if each
  535.      car manufacturer had to design a different way to start, stop, and
  536.      steer a car.
  537.    * Users will be "locked in" to whichever interface they learn; then
  538.      they will be prisoners of one supplier, who will charge a
  539.      monopolistic price.
  540.    * Large companies have an unfair advantage wherever lawsuits become
  541.      commonplace.  Since they can afford to sue, they can intimidate
  542.      smaller developers with threats even when they don't really have a
  543.      case.
  544.    * Interface improvements will come slower, since incremental
  545.      evolution through creative partial imitation will no longer occur.
  546.    If interface monopolies are accepted, other large companies are
  547. waiting to grab theirs:
  548.    * Adobe is expected to claim a monopoly on the interfaces of various
  549.      popular application programs, if Lotus ultimately wins the case
  550.      against Borland.
  551.    * Open Computing magazine reported a Microsoft vice president as
  552.      threatening to sue people who imitate the interface of Windows.
  553.    Users invest a great deal of time and money in learning to use
  554. computer interfaces.  Far more, in fact, than software developers
  555. invest in developing *and even implementing* the interfaces.  Whoever
  556. can own an interface, has made its users into captives, and
  557. misappropriated their investment.
  558.    To protect our freedom from monopolies like these, a group of
  559. programmers and users have formed a grass-roots political organization,
  560. the League for Programming Freedom.
  561.    The purpose of the League is to oppose monopolistic practices such as
  562. interface copyright and software patents.  The League calls for a return
  563. to the legal policies of the recent past, in which programmers could
  564. program freely.  The League is not concerned with free software as an
  565. issue, and is not affiliated with the Free Software Foundation.
  566.    The League's activities include publicizing the issues, as is being
  567. done here, and filing friend-of-the-court briefs on behalf of
  568. defendants sued by monopolists.
  569.    The League's membership rolls include Donald Knuth, the foremost
  570. authority on algorithms, John McCarthy, inventor of Lisp, Marvin Minsky,
  571. founder of the MIT Artificial Intelligence lab, Guy L.  Steele, Jr.,
  572. author of well-known books on Lisp and C, as well as Richard Stallman,
  573. the developer of GNU CC.  Please join and add your name to the list.
  574. Membership dues in the League are $42 per year for programmers, managers
  575. and professionals; $10.50 for students; $21 for others.
  576.    Activist members are especially important, but members who have no
  577. time to give are also important.  Surveys at major ACM conferences have
  578. indicated a vast majority of attendees agree with the League on both
  579. issues (interface copyrights and software patents).  If just ten percent
  580. of the programmers who agree with the League join the League, we will
  581. probably triumph.
  582.    To join, or for more information, phone (617) 243-4091 or write to:
  583.      League for Programming Freedom
  584.      1 Kendall Square #143
  585.      P.O. Box 9171
  586.      Cambridge, MA 02139
  587.    You can also send electronic mail to `lpf@uunet.uu.net'.
  588.    In addition to joining the League, here are some suggestions from the
  589. League for other things you can do to protect your freedom to write
  590. programs:
  591.    * Tell your friends and colleagues about this issue and how it
  592.      threatens to ruin the computer industry.
  593.    * Mention that you are a League member in your `.signature', and
  594.      mention the League's email address for inquiries.
  595.    * Ask the companies you consider working for or working with to make
  596.      statements against software monopolies, and give preference to
  597.      those that do.
  598.    * When employers ask you to sign contracts giving them copyright on
  599.      your work, insist on a clause saying they will not claim the
  600.      copyright covers imitating the interface.
  601.    * When employers ask you to sign contracts giving them patent rights,
  602.      insist on clauses saying they can use these rights only
  603.      defensively.  Don't rely on "company policy," since that can
  604.      change at any time; don't rely on an individual executive's
  605.      private word, since that person may be replaced.  Get a commitment
  606.      just as binding as the commitment they get from you.
  607.    * Write to Congress to explain the importance of these issues.
  608.           House Subcommittee on Intellectual Property
  609.           2137 Rayburn Bldg
  610.           Washington, DC 20515
  611.           
  612.           Senate Subcommittee on Patents, Trademarks and Copyrights
  613.           United States Senate
  614.           Washington, DC 20510
  615.      (These committees have received lots of mail already; let's give
  616.      them even more.)
  617.    Democracy means nothing if you don't use it.  Stand up and be
  618. counted!
  619. File: gcc.info,  Node: G++ and GCC,  Next: Invoking GCC,  Prev: Look and Feel,  Up: Top
  620. Compile C, C++, or Objective C
  621. ******************************
  622.    The C, C++, and Objective C versions of the compiler are integrated;
  623. the GNU C compiler can compile programs written in C, C++, or Objective
  624.    "GCC" is a common shorthand term for the GNU C compiler.  This is
  625. both the most general name for the compiler, and the name used when the
  626. emphasis is on compiling C programs.
  627.    When referring to C++ compilation, it is usual to call the compiler
  628. "G++".  Since there is only one compiler, it is also accurate to call
  629. it "GCC" no matter what the language context; however, the term "G++"
  630. is more useful when the emphasis is on compiling C++ programs.
  631.    We use the name "GNU CC" to refer to the compilation system as a
  632. whole, and more specifically to the language-independent part of the
  633. compiler.  For example, we refer to the optimization options as
  634. affecting the behavior of "GNU CC" or sometimes just "the compiler".
  635.    Front ends for other languages, such as Ada 9X, Fortran, Modula-3,
  636. and Pascal, are under development.  These front-ends, like that for
  637. C++, are built in subdirectories of GNU CC and link to it.  The result
  638. is an integrated compiler that can compile programs written in C, C++,
  639. Objective C, or any of the languages for which you have installed front
  640. ends.
  641.    In this manual, we only discuss the options for the C, Objective-C,
  642. and C++ compilers and those of the GNU CC core.  Consult the
  643. documentation of the other front ends for the options to use when
  644. compiling programs written in other languages.
  645.    G++ is a *compiler*, not merely a preprocessor.  G++ builds object
  646. code directly from your C++ program source.  There is no intermediate C
  647. version of the program.  (By contrast, for example, some other
  648. implementations use a program that generates a C program from your C++
  649. source.)  Avoiding an intermediate C representation of the program means
  650. that you get better object code, and better debugging information.  The
  651. GNU debugger, GDB, works with this information in the object code to
  652. give you comprehensive C++ source-level editing capabilities (*note C
  653. and C++: (gdb.info)C.).
  654. File: gcc.info,  Node: Invoking GCC,  Next: Installation,  Prev: G++ and GCC,  Up: Top
  655. GNU CC Command Options
  656. **********************
  657.    When you invoke GNU CC, it normally does preprocessing, compilation,
  658. assembly and linking.  The "overall options" allow you to stop this
  659. process at an intermediate stage.  For example, the `-c' option says
  660. not to run the linker.  Then the output consists of object files output
  661. by the assembler.
  662.    Other options are passed on to one stage of processing.  Some options
  663. control the preprocessor and others the compiler itself.  Yet other
  664. options control the assembler and linker; most of these are not
  665. documented here, since you rarely need to use any of them.
  666.    Most of the command line options that you can use with GNU CC are
  667. useful for C programs; when an option is only useful with another
  668. language (usually C++), the explanation says so explicitly.  If the
  669. description for a particular option does not mention a source language,
  670. you can use that option with all supported languages.
  671.    *Note Compiling C++ Programs: Invoking G++, for a summary of special
  672. options for compiling C++ programs.
  673.    The `gcc' program accepts options and file names as operands.  Many
  674. options have multiletter names; therefore multiple single-letter options
  675. may *not* be grouped: `-dr' is very different from `-d -r'.
  676.    You can mix options and other arguments.  For the most part, the
  677. order you use doesn't matter.  Order does matter when you use several
  678. options of the same kind; for example, if you specify `-L' more than
  679. once, the directories are searched in the order specified.
  680.    Many options have long names starting with `-f' or with `-W'--for
  681. example, `-fforce-mem', `-fstrength-reduce', `-Wformat' and so on.
  682. Most of these have both positive and negative forms; the negative form
  683. of `-ffoo' would be `-fno-foo'.  This manual documents only one of
  684. these two forms, whichever one is not the default.
  685. * Menu:
  686. * Option Summary::    Brief list of all options, without explanations.
  687. * Overall Options::     Controlling the kind of output:
  688.                         an executable, object files, assembler files,
  689.                         or preprocessed source.
  690. * Invoking G++::    Compiling C++ programs.
  691. * C Dialect Options::   Controlling the variant of C language compiled.
  692. * C++ Dialect Options:: Variations on C++.
  693. * Warning Options::     How picky should the compiler be?
  694. * Debugging Options::   Symbol tables, measurements, and debugging dumps.
  695. * Optimize Options::    How much optimization?
  696. * Preprocessor Options:: Controlling header files and macro definitions.
  697.                          Also, getting dependency information for Make.
  698. * Assembler Options::   Passing options to the assembler.
  699. * Link Options::        Specifying libraries and so on.
  700. * Directory Options::   Where to find header files and libraries.
  701.                         Where to find the compiler executable files.
  702. * Target Options::      Running a cross-compiler, or an old version of GNU CC.
  703. * Submodel Options::    Specifying minor hardware or convention variations,
  704.                         such as 68010 vs 68020.
  705. * Code Gen Options::    Specifying conventions for function calls, data layout
  706.                         and register usage.
  707. * Environment Variables:: Env vars that affect GNU CC.
  708. * Running Protoize::    Automatically adding or removing function prototypes.
  709.