Mail Archives: djgpp/1996/05/03/23:11:59
> Kevin Baca (kbaca AT bluesky DOT skygames DOT com) wrote:
> : > Maybe... but how do I force DJGPP to use register calling convention?
>
> : I see no advantage to this because of the limited number of registers
> [snip]
> : parameters. Therefore I see no net gain.
>
> It is definately a gain. Although certain instructions require specific
> registers, that doesn't mean that you necessarily have to push the
> contents of it before use. It might already have what you want. Watcom,
> for example, will order the use of registers durring calls so that the
> info is in the correct register when it get inside the function (as much
> as is possible).
>
I have observed this with the GCC compiler, too. It is very smart
about what it puts where. We can speculate until the hard-drive motor
burns our, but I like to apply the sage advice of Michael Abrash: time
it. Cause sometimes there are things such as pipeline stalls getting
in your way.
Marc Singer
- Raw text -