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