Mailinglist Archive: opensuse-programming (27 mails)

< Previous Next >
Re: [opensuse-programming] Why you sometimes need assembler
  • From: Per Jessen <per@xxxxxxxxxxxx>
  • Date: Wed, 13 Jan 2010 08:37:34 +0100
  • Message-id: <hijt7v$gsn$1@xxxxxxxxxxxxxxxx>
Anders Johansson wrote:

On Tue, 2010-01-12 at 23:30 +0100, Per Jessen wrote:
Hand-optimized assembler will _always_ beat the compiler

That is a myth which even very good assembly programmers can only live
up to in small inner-loop type segments. A good optimising compiler
can do global optimisations that a human would find extremely
difficult to do.

No myth at all. Perhaps you haven't met many very good assembler
programmers? It's not really a topic I have a desire to debate (I know
from experience that I am right).

The main reasons for _not_ using assembler are productivity and
maintainability, but when speed is paramount, hand-optimized assembler
will _always_ beat the compiler.


/Per Jessen, Zürich

--
To unsubscribe, e-mail: opensuse-programming+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-programming+help@xxxxxxxxxxxx

< Previous Next >