home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!Sirius.dfn.de!math.fu-berlin.de!Germany.EU.net!Informatik.Uni-Dortmund.DE!tommy!klute
- From: klute@tommy.informatik.uni-dortmund.de (Rainer Klute)
- Newsgroups: comp.windows.x
- Subject: Re: gcc 2.2 and R5 question
- Date: 26 Aug 1992 06:37:57 GMT
- Organization: CS Department, Dortmund University, Germany
- Lines: 31
- Sender: klute@tommy (Rainer Klute)
- Distribution: world
- Message-ID: <17f8s5INNmhu@fbi-news.Informatik.Uni-Dortmund.DE>
- References: <9208251524.AA25011@uahcs2.cs.uah.edu>
- NNTP-Posting-Host: tommy
-
- In article <9208251524.AA25011@uahcs2.cs.uah.edu>, ldawes@uahcs2.cs.uah.EDU
- (Lisa Dawes, Computer Science Dept., Univ. of Alabama-Huntsville) writes:
- |> I just compiled X11R5 with gcc 2.2 on my Sun Sparc with SunOS 4.1.1.
- |> I was wondering if anyone new the side affects of compiling the
- |> shared libraries with gcc. There is a warning saying that old
- |> X applications linked with cc will not work (they must have been
- |> linked with gcc).
-
- The reason for this odd behaviour is that the gcc compiled shared libraries
- call a function ___builtin_saveregs which is expected to reside in the main
- program. However, cc compiled programs do not comprise this function, and
- consequently they will crash upon the function call. - Doing it the other
- way is fine: gcc compiled programs work well with cc generated shared
- libraries.
-
- If you have a gcc-only environment you won't have any problems. (Well, at
- least not this one.)
-
-
- |> Are there any benefits of compiling the libraries with gcc?
-
- Gcc optimizes much better than cc - your libraries will be considerably
- smaller. Whether the gcc generated code is in general faster, too, I have
- not estimated.
-
-
- --
- Dipl.-Inform. Rainer Klute klute@irb.informatik.uni-dortmund.de
- Univ. Dortmund, IRB
- Postfach 500500 |)|/ Tel.: +49 231 755-4663
- D-W4600 Dortmund 50 |\|\ Fax : +49 231 755-2386
-