Mail Archives: djgpp/2000/04/18/05:20:36
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 -