Function parameter passing in Registers (GCC)
Posted: Thu Jul 07, 2005 4:11 am
Hi All.
Does anyone used OpenWatcom C/C++ compiler. It has beautiffull Register-Based calling convention. With this it produces very fast code.
I have switched from OpenWatcom to MinGW/GCC some days ago. I've found that code produced with OpenWatcom is little better then GCC one.
Q : Does GCC have something like Register-Based calling convention ?
P.S. If we have a function which receives one int parameter, GCC pushes it on stack i.e. we have memory op, we have one hope : this memory line already in cache, otherwise we have speed penalty.
Does anyone used OpenWatcom C/C++ compiler. It has beautiffull Register-Based calling convention. With this it produces very fast code.
I have switched from OpenWatcom to MinGW/GCC some days ago. I've found that code produced with OpenWatcom is little better then GCC one.
Q : Does GCC have something like Register-Based calling convention ?
P.S. If we have a function which receives one int parameter, GCC pushes it on stack i.e. we have memory op, we have one hope : this memory line already in cache, otherwise we have speed penalty.