CompuServe Messages

C Compilers: which one?

    25-Jul-89 00:40:07
Fm: John Draper 76703,4322
To: Black Belt Systems 76004,1771
Ben, Glad to hear lattice has seen the light. To my way of thinking, defaults should produce the best code, in the quickest time. Note that this does not mean the best code alone, if it requires extremely long compile times. ie. an optimizer that takes a long time to run should not be the default mode. Hmm… I could have sworn, from your messages, that you did feel strongly about the choice of compilers. Personally, I think they are both fine, and are 'keeping each other honest'. Anyway… one last kick at the inline asm… Assume for a moment that the function I mentioned requires the asm. You say that the entire function should be in asm, and one of the reasons you say that is because of maintainability. Now, I ask you, what is more easily maintainable? A non-trivial function written entirely in asm, or a couple of lines of asm at the beginning and end of the function? I would think that for a C programmer, a couple of lines (along with a comment as to why it's there, would be far easier to handle than say, 5 or 10 pages of pure assembly code. -larry