home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / gnu / gcc / help / 1808 < prev    next >
Encoding:
Text File  |  1992-07-29  |  1.7 KB  |  50 lines

  1. Newsgroups: gnu.gcc.help
  2. Path: sparky!uunet!cis.ohio-state.edu!osf.ORG!meissner
  3. From: meissner@osf.ORG
  4. Subject: GCC 2.x and libgcc replacement
  5. Message-ID: <9207291712.AA01039@tiktok.osf.org>
  6. Sender: daemon@cis.ohio-state.edu
  7. Organization: GNUs Not Usenet
  8. References: meissner@osf.ORG
  9. Distribution: gnu
  10. Date: Wed, 29 Jul 1992 09:12:34 GMT
  11. Lines: 37
  12.  
  13. | Hi netlanders,
  14. |     I have a few questions regarding libgcc. Is it possible to get
  15. | gcc to compile and link with the standard libc library, rather than libgcc?
  16. | I'm trying to do this on a Sun and a DEC Ultrix machine. I believe that gcc
  17. | 1.39 by default linked with the standard OS libraries. Is this the last
  18. | version to do this?
  19. | Many thanks in advance,
  20. | Andy.
  21. | (Replies should be sent to andyh@dgsi.cimage.com, I'm sending this via
  22. | somebody elses id).
  23.  
  24. Libgcc.a is just the support routines that the compiler needs.  It
  25. does not replace libc.a (though there is a GNU libc.a which has been
  26. released).  There are three things that are included in libgcc.a:
  27.  
  28.    1)    Replacement functions for normal primitives, which are
  29.     compiled with the host compiler.  For example, if your machine
  30.     does not support integer division, gcc would convert any
  31.     normal division to a call to __divsi3 (or __divmodsi4).  The
  32.     __divsi3 module in the library would use whatever emulator
  33.     your native compiler uses for the division.
  34.  
  35.    2)    C++ primitive support functions, which are needed by G++,
  36.     including allocation and static constructor/destructor
  37.     support.
  38.  
  39.    3)    Long long support to do extended precision integer arithmetic.
  40.  
  41. --
  42. Michael Meissner    email: meissner@osf.org        phone: 617-621-8861
  43. Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142
  44.  
  45. You are in a twisty little passage of standards, all conflicting.
  46.