Re: [OT] On `ad hominem' - OS X users



Sherm Pendley wrote:
It's a fact that modern compilers *usually* generate faster code than
hand-coded assembler. If this library is an exception to that general
rule, why can't you just say so without being a condescending ass
about it?

While this is true, it applies only to things that the language can express. Most processors have special tricks for multi-word arithmetic (such as the Intel ADC instruction or the new z/Architecture ALC family of instructions) that cannot be expressed at all in, say, C. (That is, C has no way of saying, "Add X to Y, and add an additional 1 if the last addition set the CPU carry flag.")

Similarly, a language that cannot express fixed-point decimal arithmetic cannot generate z/Architecture packed-decimal instructions, and a language that does not incorporate something comparable to COBOL PICTURE clauses cannot generate z/Architecture ED or EDMK instructions. And, while modern architectures have special instructions to test and set lightweight semaphores, C has no way of using them.

(Sometimes, it's the other way around. z/Architecture has a special instruction just to implement C strcpy.)

--
John W. Kennedy
"I want everybody to be smart. As smart as they can be. A world of ignorant people is too dangerous to live in."
-- Garson Kanin. "Born Yesterday"
.



Relevant Pages

  • z10 presentation on 26 Feb
    ... z/Architecture is the subject of litigation - does IBM wish to include the new stuff in that - ... For IBM-MAIN subscribe / signoff / archive access instructions, ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ...
    (bit.listserv.ibm-main)
  • Re: Hercules
    ... instructions, which mainframes have only recently added. ... and a conditional branch depending on the condition code. ... z/Architecture instructions are available. ... That's double emulation, and hideously expensive double emulation at that. ...
    (comp.lang.pl1)
  • Re: Evolution
    ... > inline assembler and larger parts by linking to an assembler ... in the HLL. ... language, particularly in smaller projects. ... > or two instructions if you ...
    (alt.lang.asm)
  • Re: Text-to-speech
    ... > When he lost track of his braces, ... Your "Allusion to the computational instructional language Python, ... prior art, the patent application pending ... of instructions,. ...
    (comp.lang.python)
  • Re: assembly in future C standard
    ... How would the C language or library be changed in light of any such ... The last changes to the C language for "CPU advancements" included ... a simple case without any prompting from the language standard. ... All new instructions can be done in C. ...
    (comp.std.c)