Date: Tue, 18 Apr 2000 11:15:21 +0200 (IST) From: Eli Zaretskii 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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.