??? 02/21/07 15:11 Read: times |
#133435 - what is "efficient" Responding to: ???'s previous message |
Erik Malund said:
I will do everything I can to avoid the above, when such does not make the process less efficient. But what is efficient here? We are talking about compromises in execution speed (here: that's why absolute registers are used), code length (here: when the absolute registers are switched off or the same function is incarnated twice) and maintainability (here: the "nonstandard" construct ensuring the same function does not need to be written twice actually), don't we? Most often, you cannot have it all... Erik Malund said:
What is to be preferred a) a bit of 'confusing' C or b) write a piece of assembler. Here (and I'd bet this is the case also too often), a new feature of the compiler (being able to detect dependency on register - and warn) would help a lot. Sometimes a problem can be solved by using some external tool, but sometimes not or it would be too cumbersome. Now the question is, whether, and under what conditions can you get such support. JW |