Re: A89: Re: "Transfer" of values between C and ASM


[Prev][Next][Index][Thread]

Re: A89: Re: "Transfer" of values between C and ASM




Scott Noveck writes:
 > Also, the more inline ASM the program contains, the less optomized the C
 > portion will be, as the C compiler is unable to realize the results output
 > in the registers - even if they're always the same - and will instead
 > re-load values into each register it uses and not exploit the output.  And

It is actually not true with gcc. Gcc's inline assembly uses symbolic
register names and you allow the *compiler to optimise* your assembly
register usage in order to minimise register spills and reloads.

It does not change the fact that you can beat the m68k gcc hands down
when the complexity of the program/function is within your comprehension.

Regards,

Zoltan


References: