Slowdowns in code generated by GCC>=3.3
Daniel Berlin
dberlin@dberlin.org
Wed Oct 20 19:05:00 GMT 2004
On Oct 20, 2004, at 1:30 PM, Zack Weinberg wrote:
> Földy Lajos <foldy@rmki.kfki.hu> writes:
>
>> and what about adding the real goto (which will be never executed, but
>> gcc will have "almost real" control flow):
>>
>> __asm__("jmp *%0" : : "a" (pc));
>> goto *pc;
>
> Nothing stops GCC from folding that asm into the common-ized jump
> block.
Right.
Never try to work around the express constraints given to you by the
compiler, it will always win, and you will always lose.
:)
More information about the Gcc
mailing list