Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #473729 > unrolled thread
| Started by | Martin Riddle <martin_rid@verizon.net> |
|---|---|
| First post | 2017-08-17 13:45 -0400 |
| Last post | 2017-08-18 12:10 +0100 |
| Articles | 20 on this page of 91 — 25 participants |
Back to article view | Back to sci.electronics.design
Microchip ICD4 ? Martin Riddle <martin_rid@verizon.net> - 2017-08-17 13:45 -0400
Re: Microchip ICD4 ? DemonicTubes <tlackie@gmail.com> - 2017-08-17 12:17 -0700
Re: Microchip ICD4 ? Martin Riddle <martin_rid@verizon.net> - 2017-08-17 15:32 -0400
Re: Microchip ICD4 ? speff <spehro@gmail.com> - 2017-08-17 19:02 -0700
Re: Microchip ICD4 ? bitrex <bitrex@de.lete.earthlink.net> - 2017-08-17 15:52 -0400
Re: Microchip ICD4 ? piglet <erichpwagner@hotmail.com> - 2017-08-17 21:23 +0100
Re: Microchip ICD4 ? boB <boB@k7iq.com> - 2017-08-17 13:42 -0700
Re: Microchip ICD4 ? Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-08-17 14:23 -0700
Re: Microchip ICD4 ? rickman <gnuarm@gmail.com> - 2017-08-17 17:46 -0400
Re: Microchip ICD4 ? rickman <gnuarm@gmail.com> - 2017-08-17 17:44 -0400
Re: Microchip ICD4 ? bitrex <bitrex@de.lete.earthlink.net> - 2017-08-17 18:40 -0400
Re: Microchip ICD4 ? DemonicTubes <tlackie@gmail.com> - 2017-08-17 16:19 -0700
Re: Microchip ICD4 ? bitrex <bitrex@de.lete.earthlink.net> - 2017-08-17 22:04 -0400
Re: Microchip ICD4 ? rickman <gnuarm@gmail.com> - 2017-08-17 20:03 -0400
Re: Microchip ICD4 ? bitrex <bitrex@de.lete.earthlink.net> - 2017-08-17 23:17 -0400
Re: Microchip ICD4 ? "Michael A. Terrell" <mike.terrell@earthlink.net> - 2017-08-18 07:36 -0400
Re: Microchip ICD4 ? Paul Rubin <no.email@nospam.invalid> - 2017-08-17 22:50 -0700
Re: Microchip ICD4 ? Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2017-08-18 14:43 +0100
Re: Microchip ICD4 ? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-08-18 13:42 +0000
Re: Microchip ICD4 ? bitrex <bitrex@de.lete.earthlink.net> - 2017-08-18 12:49 -0400
Re: Microchip ICD4 ? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-08-18 17:11 +0000
Re: Microchip ICD4 ? bitrex <bitrex@de.lete.earthlink.net> - 2017-08-18 16:22 -0400
Re: Microchip ICD4 ? Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2017-08-19 08:44 +0100
Re: Microchip ICD4 ? Paul Rubin <no.email@nospam.invalid> - 2017-08-18 23:19 -0700
Re: Microchip ICD4 ? Paul Rubin <no.email@nospam.invalid> - 2017-08-28 00:22 -0700
Re: Microchip ICD4 ? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-09-02 16:35 +0000
Re: Microchip ICD4 ? Cecil Bayona <cbayona@cbayona.com> - 2017-08-18 10:58 -0500
Re: Microchip ICD4 ? Paul Rubin <no.email@nospam.invalid> - 2017-08-18 09:34 -0700
Re: Microchip ICD4 ? David Brown <david.brown@hesbynett.no> - 2017-08-18 13:22 +0200
Re: Microchip ICD4 ? stephen@mpeforth.com (Stephen Pelc) - 2017-08-18 11:54 +0000
Re: Microchip ICD4 ? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-08-18 14:40 +0000
Re: Microchip ICD4 ? Paul Rubin <no.email@nospam.invalid> - 2017-08-18 09:29 -0700
Re: Microchip ICD4 ? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-08-18 17:06 +0000
Re: Microchip ICD4 ? Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-08-18 19:59 +0100
Re: Microchip ICD4 ? dplatt@coop.radagast.org (Dave Platt) - 2017-08-18 12:49 -0700
Re: Microchip ICD4 ? albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2017-08-19 01:52 +0200
Re: Microchip ICD4 ? bitrex <bitrex@de.lete.earthlink.net> - 2017-08-18 20:40 -0400
Re: Microchip ICD4 ? bitrex <bitrex@de.lete.earthlink.net> - 2017-08-18 20:43 -0400
Re: Microchip ICD4 ? albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2017-08-19 13:03 +0200
Re: Microchip ICD4 ? bitrex <bitrex@de.lete.earthlink.net> - 2017-08-19 10:30 -0400
Re: Microchip ICD4 ? albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2017-08-19 21:03 +0200
Re: Microchip ICD4 ? Paul Rubin <no.email@nospam.invalid> - 2017-08-18 23:28 -0700
Re: Microchip ICD4 ? David Brown <david.brown@hesbynett.no> - 2017-08-21 16:49 +0200
Re: Microchip ICD4 ? David Brown <david.brown@hesbynett.no> - 2017-08-21 16:43 +0200
Re: Microchip ICD4 ? Paul Rubin <no.email@nospam.invalid> - 2017-08-18 23:26 -0700
Re: Microchip ICD4 ? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-08-18 14:11 +0000
Re: Microchip ICD4 ? David Brown <david.brown@hesbynett.no> - 2017-08-18 16:49 +0200
Re: Microchip ICD4 ? Terry Porter <terry@tjporter.com.au> - 2017-08-18 02:40 +0000
Re: Microchip ICD4 ? bitrex <bitrex@de.lete.earthlink.net> - 2017-08-17 22:55 -0400
Re: Microchip ICD4 ? Terry Porter <terry@tjporter.com.au> - 2017-08-18 09:14 +0000
Re: Microchip ICD4 ? jack4747@gmail.com - 2017-08-18 03:10 -0700
Re: Microchip ICD4 ? Clive Arthur <cliveta@nowaytoday.co.uk> - 2017-08-18 11:38 +0100
Re: Microchip ICD4 ? Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2017-08-18 12:13 +0100
Re: Microchip ICD4 ? jack4747@gmail.com - 2017-08-18 04:25 -0700
Re: Microchip ICD4 ? Clive Arthur <cliveta@nowaytoday.co.uk> - 2017-08-18 13:43 +0100
Re: Microchip ICD4 ? Johann Klammer <klammerj@NOSPAM.a1.net> - 2017-08-18 23:40 +0200
Re: Microchip ICD4 ? David Brown <david.brown@hesbynett.no> - 2017-08-18 16:57 +0200
Re: Microchip ICD4 ? Przemek Klosowski <przemek@tux.dot.org> - 2017-08-22 03:24 +0000
Re: Microchip ICD4 ? bitrex <bitrex@de.lete.earthlink.net> - 2017-08-18 12:32 -0400
Re: Microchip ICD4 ? Neon John <no@never.com> - 2017-08-18 10:02 -0400
Re: Microchip ICD4 ? bitrex <bitrex@de.lete.earthlink.net> - 2017-08-18 11:02 -0400
Re: Microchip ICD4 ? Terry Porter <terry@tjporter.com.au> - 2017-08-20 07:46 +0000
Re: Microchip ICD4 ? David Brown <david.brown@hesbynett.no> - 2017-08-21 16:57 +0200
Re: Microchip ICD4 ? David Brown <david.brown@hesbynett.no> - 2017-08-18 16:54 +0200
Re: Microchip ICD4 ? rickman <gnuarm@gmail.com> - 2017-08-17 23:01 -0400
Re: Microchip ICD4 ? Terry Porter <terry@tjporter.com.au> - 2017-08-18 07:58 +0000
Re: Microchip ICD4 ? Paul Rubin <no.email@nospam.invalid> - 2017-08-18 01:19 -0700
Re: Microchip ICD4 ? Terry Porter <terry@tjporter.com.au> - 2017-08-18 20:51 +0000
Re: Microchip ICD4 ? Paul Rubin <no.email@nospam.invalid> - 2017-08-18 23:35 -0700
Re: Microchip ICD4 ? Terry Porter <terry@tjporter.com.au> - 2017-08-20 07:42 +0000
Re: Microchip ICD4 ? Paul Rubin <no.email@nospam.invalid> - 2017-08-20 19:49 -0700
Re: Microchip ICD4 ? rickman <gnuarm@gmail.com> - 2017-08-18 05:18 -0400
Re: Microchip ICD4 ? Terry Porter <terry@tjporter.com.au> - 2017-08-20 07:22 +0000
Re: Microchip ICD4 ? rickman <gnuarm@gmail.com> - 2017-08-22 00:08 -0400
Re: Microchip ICD4 ? Paul Rubin <no.email@nospam.invalid> - 2017-08-21 22:41 -0700
Re: Microchip ICD4 ? Terry Porter <terry@tjporter.com.au> - 2017-08-22 07:28 +0000
Re: Microchip ICD4 ? rickman <gnuarm@gmail.com> - 2017-08-23 16:52 -0400
Re: Microchip ICD4 ? Paul Rubin <no.email@nospam.invalid> - 2017-08-17 22:54 -0700
Re: Microchip ICD4 ? David Brown <david.brown@hesbynett.no> - 2017-08-18 16:36 +0200
Re: Microchip ICD4 ? Terry Porter <terry@tjporter.com.au> - 2017-08-20 08:49 +0000
Re: Microchip ICD4 ? David Brown <david.brown@hesbynett.no> - 2017-08-21 17:03 +0200
Re: Microchip ICD4 ? Terry Porter <terry@tjporter.com.au> - 2017-08-26 02:33 +0000
Re: Microchip ICD4 ? rickman <gnuarm@gmail.com> - 2017-08-26 01:55 -0400
Re: Microchip ICD4 ? Paul Rubin <no.email@nospam.invalid> - 2017-08-27 13:40 -0700
Re: Microchip ICD4 ? rickman <gnuarm@gmail.com> - 2017-09-02 12:58 -0400
Re: Microchip ICD4 ? David Brown <david.brown@hesbynett.no> - 2017-08-28 16:25 +0200
Re: Microchip ICD4 ? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-08-18 13:28 +0000
Re: Microchip ICD4 ? speff <spehro@gmail.com> - 2017-08-17 19:09 -0700
Re: Microchip ICD4 ? TTman <pcw1.cad@ntlworld.com> - 2017-08-18 10:12 +0100
Re: Microchip ICD4 ? rickman <gnuarm@gmail.com> - 2017-08-18 05:21 -0400
Re: Microchip ICD4 ? TTman <pcw1.cad@ntlworld.com> - 2017-08-18 12:10 +0100
Page 1 of 5 [1] 2 3 4 5 Next page →
| From | Martin Riddle <martin_rid@verizon.net> |
|---|---|
| Date | 2017-08-17 13:45 -0400 |
| Subject | Microchip ICD4 ? |
| Message-ID | <4flbpcdr024camgg3qi1neo56tjk7cs28a@4ax.com> |
Any folks using this ICD4? Cheers
[toc] | [next] | [standalone]
| From | DemonicTubes <tlackie@gmail.com> |
|---|---|
| Date | 2017-08-17 12:17 -0700 |
| Message-ID | <c5800f09-96b2-4deb-9577-7a4d5090d421@googlegroups.com> |
| In reply to | #473729 |
On Thursday, August 17, 2017 at 11:45:13 AM UTC-6, Martin Riddle wrote: > Any folks using this ICD4? > > Cheers Have they started shipping them? I think they launch this week.
[toc] | [prev] | [next] | [standalone]
| From | Martin Riddle <martin_rid@verizon.net> |
|---|---|
| Date | 2017-08-17 15:32 -0400 |
| Message-ID | <6lrbpcl00ofcckbpq7qu8l3iho4t5dvl7i@4ax.com> |
| In reply to | #473741 |
On Thu, 17 Aug 2017 12:17:30 -0700 (PDT), DemonicTubes <tlackie@gmail.com> wrote: >On Thursday, August 17, 2017 at 11:45:13 AM UTC-6, Martin Riddle wrote: >> Any folks using this ICD4? >> >> Cheers > >Have they started shipping them? I think they launch this week. Maybe, I see some of the documentation is dated 8/10/17. So you could be right, too early to get an opinion. I was going to get a ICD3, but I saw the 4 and did a double take. Cheers
[toc] | [prev] | [next] | [standalone]
| From | speff <spehro@gmail.com> |
|---|---|
| Date | 2017-08-17 19:02 -0700 |
| Message-ID | <e91a0f65-5818-4c4b-99a7-9e295f9399b3@googlegroups.com> |
| In reply to | #473741 |
On Thursday, 17 August 2017 15:17:39 UTC-4, DemonicTubes wrote: > On Thursday, August 17, 2017 at 11:45:13 AM UTC-6, Martin Riddle wrote: > > Any folks using this ICD4? > > > > Cheers > > Have they started shipping them? I think they launch this week. I got one a couple days ago. Pretty heavy, you could probably play hockey with it. The support list is not complete yet. Eventually it should handle the ex-Atmel stuff. --sp
[toc] | [prev] | [next] | [standalone]
| From | bitrex <bitrex@de.lete.earthlink.net> |
|---|---|
| Date | 2017-08-17 15:52 -0400 |
| Message-ID | <dumlB.4911$sH2.173@fx05.iad> |
| In reply to | #473729 |
On 08/17/2017 01:45 PM, Martin Riddle wrote: > Any folks using this ICD4? > > Cheers > I hope nobody's still writing uP code in asm in the year 2k17.
[toc] | [prev] | [next] | [standalone]
| From | piglet <erichpwagner@hotmail.com> |
|---|---|
| Date | 2017-08-17 21:23 +0100 |
| Message-ID | <on4tp2$m87$1@dont-email.me> |
| In reply to | #473744 |
On 17/08/2017 20:52, bitrex wrote: > On 08/17/2017 01:45 PM, Martin Riddle wrote: >> Any folks using this ICD4? >> >> Cheers >> > > I hope nobody's still writing uP code in asm in the year 2k17. I do, assembler is the best! With a good suite of macros can do anything better than them darn annoying "high level" languages claim. piglet
[toc] | [prev] | [next] | [standalone]
| From | boB <boB@k7iq.com> |
|---|---|
| Date | 2017-08-17 13:42 -0700 |
| Message-ID | <7tvbpcpklrovtogaoofaakefhjd2335r9i@4ax.com> |
| In reply to | #473751 |
On Thu, 17 Aug 2017 21:23:58 +0100, piglet <erichpwagner@hotmail.com> wrote: >On 17/08/2017 20:52, bitrex wrote: >> On 08/17/2017 01:45 PM, Martin Riddle wrote: >>> Any folks using this ICD4? >>> >>> Cheers >>> >> >> I hope nobody's still writing uP code in asm in the year 2k17. > >I do, assembler is the best! > >With a good suite of macros can do anything better than them darn >annoying "high level" languages claim. > >piglet Still gotta know asm to debug some times.
[toc] | [prev] | [next] | [standalone]
| From | Lasse Langwadt Christensen <langwadt@fonz.dk> |
|---|---|
| Date | 2017-08-17 14:23 -0700 |
| Message-ID | <1d8c231c-22d5-48de-9022-4f98712edd8e@googlegroups.com> |
| In reply to | #473751 |
Den torsdag den 17. august 2017 kl. 22.24.07 UTC+2 skrev piglet: > On 17/08/2017 20:52, bitrex wrote: > > On 08/17/2017 01:45 PM, Martin Riddle wrote: > >> Any folks using this ICD4? > >> > >> Cheers > >> > > > > I hope nobody's still writing uP code in asm in the year 2k17. > > I do, assembler is the best! > > With a good suite of macros can do anything better than them darn > annoying "high level" languages claim. suite of macros, i.e. you have made your own high-level language ...
[toc] | [prev] | [next] | [standalone]
| From | rickman <gnuarm@gmail.com> |
|---|---|
| Date | 2017-08-17 17:46 -0400 |
| Message-ID | <on52jf$4ou$2@dont-email.me> |
| In reply to | #473756 |
Lasse Langwadt Christensen wrote on 8/17/2017 5:23 PM: > Den torsdag den 17. august 2017 kl. 22.24.07 UTC+2 skrev piglet: >> On 17/08/2017 20:52, bitrex wrote: >>> On 08/17/2017 01:45 PM, Martin Riddle wrote: >>>> Any folks using this ICD4? >>>> >>>> Cheers >>>> >>> >>> I hope nobody's still writing uP code in asm in the year 2k17. >> >> I do, assembler is the best! >> >> With a good suite of macros can do anything better than them darn >> annoying "high level" languages claim. > > suite of macros, i.e. you have made your own high-level language ... More like a library. Heck, there is nothing to stop you from using a macro to call a C library. But it's still not a HLL. -- Rick C
[toc] | [prev] | [next] | [standalone]
| From | rickman <gnuarm@gmail.com> |
|---|---|
| Date | 2017-08-17 17:44 -0400 |
| Message-ID | <on52f0$4ou$1@dont-email.me> |
| In reply to | #473751 |
piglet wrote on 8/17/2017 4:23 PM: > On 17/08/2017 20:52, bitrex wrote: >> On 08/17/2017 01:45 PM, Martin Riddle wrote: >>> Any folks using this ICD4? >>> >>> Cheers >>> >> >> I hope nobody's still writing uP code in asm in the year 2k17. > > I do, assembler is the best! > > With a good suite of macros can do anything better than them darn annoying > "high level" languages claim. I have often thought of Forth as a macro assembler on steroids. Mecrisp is being given optimizations that get it even closer to working in assembler in terms of speed and code size. Have you ever looked at it? -- Rick C
[toc] | [prev] | [next] | [standalone]
| From | bitrex <bitrex@de.lete.earthlink.net> |
|---|---|
| Date | 2017-08-17 18:40 -0400 |
| Message-ID | <_XolB.2447$kJ2.2238@fx33.iad> |
| In reply to | #473761 |
On 08/17/2017 05:44 PM, rickman wrote: > piglet wrote on 8/17/2017 4:23 PM: >> On 17/08/2017 20:52, bitrex wrote: >>> On 08/17/2017 01:45 PM, Martin Riddle wrote: >>>> Any folks using this ICD4? >>>> >>>> Cheers >>>> >>> >>> I hope nobody's still writing uP code in asm in the year 2k17. >> >> I do, assembler is the best! >> >> With a good suite of macros can do anything better than them darn >> annoying >> "high level" languages claim. > > I have often thought of Forth as a macro assembler on steroids. Mecrisp > is being given optimizations that get it even closer to working in > assembler in terms of speed and code size. Have you ever looked at it? > My contention is that well-written modern C++1x will destroy any handwritten asm or compiled-Forth "macro assembler" program on both execution speed and code size for any nontrivial general computing task in all but the most extreme edge-cases, even on say AVR 8 bit devices. There should be a contest! ;-)
[toc] | [prev] | [next] | [standalone]
| From | DemonicTubes <tlackie@gmail.com> |
|---|---|
| Date | 2017-08-17 16:19 -0700 |
| Message-ID | <5e9fedbc-d6ce-40a7-93ae-7f02b27144e2@googlegroups.com> |
| In reply to | #473768 |
On Thursday, August 17, 2017 at 4:41:06 PM UTC-6, bitrex wrote: > On 08/17/2017 05:44 PM, rickman wrote: > > piglet wrote on 8/17/2017 4:23 PM: > >> On 17/08/2017 20:52, bitrex wrote: > >>> On 08/17/2017 01:45 PM, Martin Riddle wrote: > >>>> Any folks using this ICD4? > >>>> > >>>> Cheers > >>>> > >>> > >>> I hope nobody's still writing uP code in asm in the year 2k17. > >> > >> I do, assembler is the best! > >> > >> With a good suite of macros can do anything better than them darn > >> annoying > >> "high level" languages claim. > > > > I have often thought of Forth as a macro assembler on steroids. Mecrisp > > is being given optimizations that get it even closer to working in > > assembler in terms of speed and code size. Have you ever looked at it? > > > > My contention is that well-written modern C++1x will destroy any > handwritten asm or compiled-Forth "macro assembler" program on both > execution speed and code size for any nontrivial general computing task > in all but the most extreme edge-cases, even on say AVR 8 bit devices. > > There should be a contest! ;-) You are probably right. A few years ago I programmed an 8bit AVR in ASM for R&D. Going to production, my programmer re-wrote it in C++...I told him my version would be faster and use less flash...turned out I was wrong. Still use ASM sometimes though.
[toc] | [prev] | [next] | [standalone]
| From | bitrex <bitrex@de.lete.earthlink.net> |
|---|---|
| Date | 2017-08-17 22:04 -0400 |
| Message-ID | <mWrlB.2689$WN2.28@fx12.iad> |
| In reply to | #473771 |
On 08/17/2017 07:19 PM, DemonicTubes wrote: >> My contention is that well-written modern C++1x will destroy any >> handwritten asm or compiled-Forth "macro assembler" program on both >> execution speed and code size for any nontrivial general computing task >> in all but the most extreme edge-cases, even on say AVR 8 bit devices. >> >> There should be a contest! ;-) > > You are probably right. A few years ago I programmed an 8bit AVR in ASM for R&D. Going to production, my programmer re-wrote it in C++...I told him my version would be faster and use less flash...turned out I was wrong. > > Still use ASM sometimes though. You also get to spend less time fiddling with in-circuit debuggers, as for lots of stuff not directly involving I/O you can make a unit-test harness for x86 and debug/test code directly for an x86 desktop target, and then cross-compile for the embedded architecture at least secure in the knowledge that you're using code that is otherwise functionally correct
[toc] | [prev] | [next] | [standalone]
| From | rickman <gnuarm@gmail.com> |
|---|---|
| Date | 2017-08-17 20:03 -0400 |
| Message-ID | <on5ajv$t3d$1@dont-email.me> |
| In reply to | #473768 |
bitrex wrote on 8/17/2017 6:40 PM: > On 08/17/2017 05:44 PM, rickman wrote: >> piglet wrote on 8/17/2017 4:23 PM: >>> On 17/08/2017 20:52, bitrex wrote: >>>> On 08/17/2017 01:45 PM, Martin Riddle wrote: >>>>> Any folks using this ICD4? >>>>> >>>>> Cheers >>>>> >>>> >>>> I hope nobody's still writing uP code in asm in the year 2k17. >>> >>> I do, assembler is the best! >>> >>> With a good suite of macros can do anything better than them darn annoying >>> "high level" languages claim. >> >> I have often thought of Forth as a macro assembler on steroids. Mecrisp >> is being given optimizations that get it even closer to working in >> assembler in terms of speed and code size. Have you ever looked at it? >> > > My contention is that well-written modern C++1x will destroy any handwritten > asm or compiled-Forth "macro assembler" program on both execution speed and > code size for any nontrivial general computing task in all but the most > extreme edge-cases, even on say AVR 8 bit devices. > > There should be a contest! ;-) What *is* C++1x and why do you think it would be faster than other compiled languages? -- Rick C
[toc] | [prev] | [next] | [standalone]
| From | bitrex <bitrex@de.lete.earthlink.net> |
|---|---|
| Date | 2017-08-17 23:17 -0400 |
| Message-ID | <R_slB.11992$wN2.3762@fx13.iad> |
| In reply to | #473777 |
On 08/17/2017 08:03 PM, rickman wrote: >> My contention is that well-written modern C++1x will destroy any >> handwritten >> asm or compiled-Forth "macro assembler" program on both execution >> speed and >> code size for any nontrivial general computing task in all but the most >> extreme edge-cases, even on say AVR 8 bit devices. >> >> There should be a contest! ;-) > > What *is* C++1x and why do you think it would be faster than other > compiled languages? > Check it out, here's Pong for the Commodore 64/6502 entirely in C++17, smooshed down to 1005 bytes, including sprite resources. Not even with the 6502 as a native target but translated from an x86 binary. <https://youtu.be/zBkNBP00wJE>
[toc] | [prev] | [next] | [standalone]
| From | "Michael A. Terrell" <mike.terrell@earthlink.net> |
|---|---|
| Date | 2017-08-18 07:36 -0400 |
| Message-ID | <F9GdnVPTTKbPTAvEnZ2dnUU7-XednZ2d@earthlink.com> |
| In reply to | #473800 |
bitrex wrote:
> On 08/17/2017 08:03 PM, rickman wrote:
>
>>> My contention is that well-written modern C++1x will destroy any
>>> handwritten
>>> asm or compiled-Forth "macro assembler" program on both execution
>>> speed and
>>> code size for any nontrivial general computing task in all but the most
>>> extreme edge-cases, even on say AVR 8 bit devices.
>>>
>>> There should be a contest! ;-)
>>
>> What *is* C++1x and why do you think it would be faster than other
>> compiled languages?
>>
>
> Check it out, here's Pong for the Commodore 64/6502 entirely in C++17,
> smooshed down to 1005 bytes, including sprite resources. Not even with
> the 6502 as a native target but translated from an x86 binary.
The Commodore 64 used a 6510 processor, not the original 6502. It
has a built in port that interfaced the cassette port, and a few other
non standard functions.
--
Never piss off an Engineer!
They don't get mad.
They don't get even.
They go for over unity! ;-)
[toc] | [prev] | [next] | [standalone]
| From | Paul Rubin <no.email@nospam.invalid> |
|---|---|
| Date | 2017-08-17 22:50 -0700 |
| Message-ID | <87a82xqvap.fsf@nightsong.com> |
| In reply to | #473777 |
rickman <gnuarm@gmail.com> writes: > What *is* C++1x and why do you think it would be faster than other > compiled languages? C++1x = C++11, C++14, and C++17, three consecutive versions of the C++ standard. C++11 had large additions/changes over earlier versions, that enabled various significant optimizations. C++14 and C++17 add comparatively smaller tweaks to C++11. C++ will likely beat handwritten assembler for any sizeable program, because of the insane effort it would take to write and the maintain the asm code with the crazy contorted optimizations that the compiler puts in. But, for a small tight loop where the human is willing to put in enough effort per instruction, the human can still beat the compiler. See: https://cr.yp.to/talks/2015.04.16/slides-djb-20150416-a4.pdf
[toc] | [prev] | [next] | [standalone]
| From | Martin Brown <'''newspam'''@nezumi.demon.co.uk> |
|---|---|
| Date | 2017-08-18 14:43 +0100 |
| Message-ID | <on6qto$1ls8$1@gioia.aioe.org> |
| In reply to | #473806 |
On 18/08/2017 06:50, Paul Rubin wrote: > rickman <gnuarm@gmail.com> writes: >> What *is* C++1x and why do you think it would be faster than other >> compiled languages? > > C++1x = C++11, C++14, and C++17, three consecutive versions of the C++ > standard. C++11 had large additions/changes over earlier versions, that > enabled various significant optimizations. C++14 and C++17 add > comparatively smaller tweaks to C++11. > > C++ will likely beat handwritten assembler for any sizeable program, > because of the insane effort it would take to write and the maintain the > asm code with the crazy contorted optimizations that the compiler puts > in. But, for a small tight loop where the human is willing to put in > enough effort per instruction, the human can still beat the compiler. > > See: https://cr.yp.to/talks/2015.04.16/slides-djb-20150416-a4.pdf > With profile directed compiler optimisation on deep pipelined CPUs with speculative execution it is getting increasingly more difficult for the human assembler writer to keep up with the best optimising compilers. It isn't usually worth the effort any more. -- Regards, Martin Brown
[toc] | [prev] | [next] | [standalone]
| From | anton@mips.complang.tuwien.ac.at (Anton Ertl) |
|---|---|
| Date | 2017-08-18 13:42 +0000 |
| Message-ID | <2017Aug18.154248@mips.complang.tuwien.ac.at> |
| In reply to | #473806 |
Paul Rubin <no.email@nospam.invalid> writes:
>C++ will likely beat handwritten assembler for any sizeable program,
>because of the insane effort it would take to write and the maintain the
>asm code with the crazy contorted optimizations that the compiler puts
>in.
Programmers who think that are likely to produce code that's not just
a little slower, but much slower. That's because they have no idea
what compilers can do and what they cannot do.
As an example, I know of a microprocessor simulator that was written
in C++, and it was, in a sense, well-written C++, using lots of
abstractions. The resulting simulator worked, at 300 simulated cycles
per (wall-clock) second. That was much too slow to be useful, so they
threw it away, wrote a simulator designed for efficiency (that ignored
all the great software engineering features in C++), and the result
simulated at 3M simulated cycles per second, which was good enough.
Compilers may put in crazy contorted optimizations, but that does not
mean that the resulting code is fast. For any sizable program, there
are so many stumbling blocks to optimization, that a compiler working
on some high-level code is unlikely to get as good a result as a
programmer expressing the code more directly. Plus, compiler
supremacists are unlikely to be aware of these stumbling blocks, but
even for someone like me, who is aware of them, trying to work around
them is more effort than writing the code more directly to begin with.
As an example of the inability of compilers to make source-level
optimization by programmers unnecessary, take a look at Section 4.2 of
<http://www.complang.tuwien.ac.at/kps2015/proceedings/KPS_2015_submission_29.pdf>.
The source-level optimizations are from a book that was 33 years old
at the time, and yet the optimizing compilers performed only one of
these optimizations (inlining). Apart from that, the compiler
optimizations seem to be orthogonal to the source-level optimizations.
In later work, I and others could achieve another factor of 2.5 using
assembly language, but you may consider that as an example of a small,
tight loop.
- anton
--
M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
New standard: http://www.forth200x.org/forth200x.html
EuroForth 2017: http://euro.theforth.net/
[toc] | [prev] | [next] | [standalone]
| From | bitrex <bitrex@de.lete.earthlink.net> |
|---|---|
| Date | 2017-08-18 12:49 -0400 |
| Message-ID | <rUElB.6087$zE2.3650@fx20.iad> |
| In reply to | #473843 |
On 08/18/2017 09:42 AM, Anton Ertl wrote: > Paul Rubin <no.email@nospam.invalid> writes: >> C++ will likely beat handwritten assembler for any sizeable program, >> because of the insane effort it would take to write and the maintain the >> asm code with the crazy contorted optimizations that the compiler puts >> in. > > Programmers who think that are likely to produce code that's not just > a little slower, but much slower. That's because they have no idea > what compilers can do and what they cannot do. > > As an example, I know of a microprocessor simulator that was written > in C++, and it was, in a sense, well-written C++, using lots of > abstractions. The resulting simulator worked, at 300 simulated cycles > per (wall-clock) second. That was much too slow to be useful, so they > threw it away, wrote a simulator designed for efficiency (that ignored > all the great software engineering features in C++), and the result > simulated at 3M simulated cycles per second, which was good enough. That was silly, just profile the code to see where the bottlenecks are and rewrite those parts. No point in rewriting code for efficiency that the CPU is only spending 1% of its time executing (usually 90% of the codebase)
[toc] | [prev] | [next] | [standalone]
Page 1 of 5 [1] 2 3 4 5 Next page →
Back to top | Article view | sci.electronics.design
csiph-web