On Fri, 13 Nov 2015 07:08:46 -0600, John McKown wrote: > ... >I guess that's why Linux is written mainly in C. Let the compiler writers >shoulder the weight of understanding the ISA and optimizing the execution >code. Or course, IBM is hinting at that with their latest xlc compiler on >z/OS which can embed assembler in "regular" C as well as Metal C. > Well, yes. Something about core competency. Spend programming resource on an optimizing compiler which can produce object code faster, better, cheaper than redundant effort by human programmers. And the next generation ISA can be exploited merely by recompiling, not recoding.
Does embedded assembler defeat the compiler's optimization? I could even imagine an optimizing assembler, actually an optimizing compiler with traditional assembler source language but which produces optimized object code for the same ISA or a different ISA. The best of both worlds? Doubtless some would say the worst. -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
