Mail Archives: djgpp/2000/04/17/12:25:03
On 17 Apr 2000, Dieter Buerssner 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.
Some code (like texture mapping ;-) doesn't call library functions.
> Recompiling
> the library won't help, because of the asm code.
Somebody submitted patches to make the library mregparm-compatible, but
the patches need work. Volunteers are welcome.
> Other compilers circumvent the library problem by __cdecl or
> equivalent keywords in the header files.
GCC has such keywords as well.
> (This will not avoid all problems, though.
Exactly.
- Raw text -