www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/18/05:20:36

Date: Tue, 18 Apr 2000 11:15:21 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: djgpp AT delorie DOT com
Subject: Re: inefficiency of GCC output code & -O problem
In-Reply-To: <38fb36e6.25856106@news.freeserve.net>
Message-ID: <Pine.SUN.3.91.1000418111243.28255E-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Mon, 17 Apr 2000, Steamer wrote:

> >>GCC has such a feature as well.  Read the on-line GCC manual about the 
> >>"-mregparm" switch, for details.
> >
> >Certainly, gcc has such a feature. But it is (almost) unusable.
> >When you call the library, the program will stop working. Recompiling
> >the library won't help, because of the asm code.
> >
> >Other compilers circumvent the library problem by __cdecl or
> >equivalent keywords in the header files.
> 
> But there is a regparm function attribute that can be used like
> this (info gcc "c ext" "function at").

The problem is mainly with assembly functions in the library, not with 
functions written in C.

I suggest to look the related discussions held on the djgpp-workers 
mailing list a few months ago.  You should be able to find those 
discussions via the www.delorie.com/djgpp/mail-archives/ page.
If you have ideas how to solve the problems raised in those discussions, 
please post them to djgpp-workers AT delorie DOT com.

Thanks.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019