Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.arch.embedded > #27841
| From | Grant Edwards <invalid@invalid.invalid> |
|---|---|
| Newsgroups | comp.arch.embedded |
| Subject | Re: [AVR] What assembler to use? |
| Date | 2018-06-18 14:11 +0000 |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Message-ID | <pg8ej2$pdd$1@reader1.panix.com> (permalink) |
| References | (1 earlier) <pg65pr$4ml$2@dont-email.me> <pg7ln1$183f$1@gioia.aioe.org> <pg7msg$8d9$1@dont-email.me> <pg7r5e$1ibd$1@gioia.aioe.org> <pg7u6s$guo$2@dont-email.me> |
On 2018-06-18, David Brown <david.brown@hesbynett.no> wrote:
> But I would also recommend forgetting about gas - and forgetting about
> writing code in assembly. You need a really god reason to be writing
> anything more than tiny snippets in assembly these days.
What he said.
Many years ago, I did some profiling of an ARM7 project that was
written in C using GCC 3.something. The application was spening a
significant portion of its time in the BSD network stack's IP checksum
function (which was written in standard C).
No problem, thought I, as I wrote my own IP checksum function in ARM7
assembly. It was slower than the C function. After several solid
days of work (including a hint from somebody about some pretty obscure
ARM7 instruction features), I managed to come up with an IP checksum
function that was noticably faster than the standard C one.
A couple years later, there was a update to both the network stack and
GCC. I re-ran the comparisons, and my carefully crafted assembly
language was now slightly slower than the network stack's C version.
--
Grant Edwards grant.b.edwards Yow! My mind is a potato
at field ...
gmail.com
Back to comp.arch.embedded | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[AVR] What assembler to use? Johann Klammer <klammerj@NOSPAM.a1.net> - 2018-06-16 09:37 +0200
Re: [AVR] What assembler to use? David Brown <david.brown@hesbynett.no> - 2018-06-17 19:29 +0200
Re: [AVR] What assembler to use? Johann Klammer <klammerj@NOSPAM.a1.net> - 2018-06-18 09:07 +0200
Re: [AVR] What assembler to use? Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2018-06-18 10:18 +0300
Re: [AVR] What assembler to use? David Brown <david.brown@hesbynett.no> - 2018-06-18 11:29 +0200
Re: [AVR] What assembler to use? John Speth <johnspeth@yahoo.com> - 2018-06-18 09:39 -0700
Re: [AVR] What assembler to use? David Brown <david.brown@hesbynett.no> - 2018-06-18 18:44 +0200
Re: [AVR] What assembler to use? Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2018-06-18 22:48 +0300
Re: [AVR] What assembler to use? Przemek Klosowski <przemek@tux.dot.org> - 2018-06-18 13:44 +0000
Re: [AVR] What assembler to use? David Brown <david.brown@hesbynett.no> - 2018-06-18 09:27 +0200
Re: [AVR] What assembler to use? Johann Klammer <klammerj@NOSPAM.a1.net> - 2018-06-18 10:40 +0200
Re: [AVR] What assembler to use? David Brown <david.brown@hesbynett.no> - 2018-06-18 11:32 +0200
Re: [AVR] What assembler to use? Grant Edwards <invalid@invalid.invalid> - 2018-06-18 14:11 +0000
Re: [AVR] What assembler to use? Michael Bäuerle <michael.baeuerle@stz-e.de> - 2018-06-18 09:50 +0200
Re: [AVR] What assembler to use? upsidedown@downunder.com - 2018-06-18 18:54 +0300
csiph-web