Re: [OT] On `ad hominem' - OS X users
- From: John W Kennedy <jwkenne@xxxxxxxxxxxxx>
- Date: Thu, 25 Sep 2008 16:57:53 -0400
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"
.
- Follow-Ups:
- Re: [OT] On `ad hominem' - OS X users
- From: Peter J. Holzer
- Re: ASM for math
- From: Ilya Zakharevich
- Re: [OT] On `ad hominem' - OS X users
- From: Sherm Pendley
- Re: [OT] On `ad hominem' - OS X users
- References:
- Math::Pari in turmoil
- From: Ilya Zakharevich
- Re: [OT] On `ad hominem' - OS X users
- From: Sherm Pendley
- Re: [OT] On `ad hominem' - OS X users
- From: Ilya Zakharevich
- Re: [OT] On `ad hominem' - OS X users
- From: Sherm Pendley
- Re: [OT] On `ad hominem' - OS X users
- From: Ilya Zakharevich
- Re: [OT] On `ad hominem' - OS X users
- From: Sherm Pendley
- Math::Pari in turmoil
- Prev by Date: Re: [OT] On `ad hominem' - OS X users
- Next by Date: Re: [OT] On `ad hominem' - OS X users
- Previous by thread: Re: [OT] On `ad hominem' - OS X users
- Next by thread: Re: [OT] On `ad hominem' - OS X users
- Index(es):
Relevant Pages
|