Mailinglist Archive: opensuse-programming (27 mails)
| < Previous | Next > |
Re: [opensuse-programming] Why you sometimes need assembler
- From: Anders Johansson <ajh@xxxxxxxx>
- Date: Tue, 12 Jan 2010 23:39:06 +0100
- Message-id: <1263335946.26376.4.camel@xxxxxxxxxxxxx>
On Tue, 2010-01-12 at 23:30 +0100, Per Jessen wrote:
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.
In a sense of course there is nothing that a compiler can do that a
human programmer can't, but modern global scale optimisations make it
extraordinarily difficult, if not practically impossible, for even the
best humans to achieve.
Then again, most optimisations are exceeded easily by small algorithmic
changes. Hand optimising code can't change the complexity of an
algorithm
Anders
--
To unsubscribe, e-mail: opensuse-programming+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-programming+help@xxxxxxxxxxxx
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.
In a sense of course there is nothing that a compiler can do that a
human programmer can't, but modern global scale optimisations make it
extraordinarily difficult, if not practically impossible, for even the
best humans to achieve.
Then again, most optimisations are exceeded easily by small algorithmic
changes. Hand optimising code can't change the complexity of an
algorithm
Anders
--
To unsubscribe, e-mail: opensuse-programming+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-programming+help@xxxxxxxxxxxx
| < Previous | Next > |