Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > A Simple Commodore 64 Game in C++17
2016-09-26 12:34
Martin Piper

Registered: Nov 2007
Posts: 636
A Simple Commodore 64 Game in C++17

CppCon 2016: Jason Turner “Rich Code for Tiny Computers: A Simple Commodore 64 Game in C++17”

https://www.youtube.com/watch?v=zBkNBP00wJE

Rather interesting to watch the compiler in action from: https://youtu.be/zBkNBP00wJE?t=747
2016-09-26 12:54
chatGPZ

Registered: Dec 2001
Posts: 11127
1:20h of stating the obvious ;_;
2016-09-26 15:16
Mr. SID

Registered: Jan 2003
Posts: 421
Yes, we all know that C++ can be used as a glorified macro language. :)

Still doesn't really help though, it doesn't really make anything easier.
2016-09-26 15:21
MagerValp

Registered: Dec 2001
Posts: 1056
I thought it was a thoroughly enjoyable demo of zero cost abstractions. The point was obviously not that you should use C++ to write C64 code.
2016-09-26 16:31
Mr. SID

Registered: Jan 2003
Posts: 421
Exactly. The C64 part didn't really add anything.
2016-09-26 16:55
JackAsser

Registered: Jun 2002
Posts: 1989
I think one of the questions from the audience had the most relevance: "how do you ensure the optimizations and abstractions stay at zero overhead when the compiler, optimizer and transpiler evolves". You don't which is, for the target platform, critical in this case. Hence, interesting techniques but really not worth it imo.
2016-09-26 17:19
Danzig

Registered: Jun 2002
Posts: 429
Quote: I think one of the questions from the audience had the most relevance: "how do you ensure the optimizations and abstractions stay at zero overhead when the compiler, optimizer and transpiler evolves". You don't which is, for the target platform, critical in this case. Hence, interesting techniques but really not worth it imo.

but in real life: this is how treu love was done :-D
2016-09-26 17:22
MagerValp

Registered: Dec 2001
Posts: 1056
@Mr. SID: It added hard limitations and a fun demo. C64 light saber pong is a lot more interesting than some modern 8-bit microcontroller board.

@JackAsser: That was indeed the best question, pity he didn't answer it. One forgotten const or changed optimization and your code explodes.
2016-09-27 07:54
ChristopherJam

Registered: Aug 2004
Posts: 1380
The use of 32bit x86 as an IR was an interesting decision. I wonder if there are any 16 bit llvm targets that would have been a better fit? Admittedly the x86 code generator's probably the most mature at this stage.
2016-09-27 08:51
chatGPZ

Registered: Dec 2001
Posts: 11127
both gcc and llvm backend are targetted at 32bit CPUs.... and all the hacks that try to generate 16 or even 8bit code are really ugly, and result in really ugly code - thats why probably :)
2016-09-27 14:30
MagerValp

Registered: Dec 2001
Posts: 1056
ARM support is also mature and battle tested, and I would've thought that thumb would be better suited as IR on the way to 6502. Still, for the purpose of the talk i386 worked just as well.
 
... 6 posts hidden. Click here to view all posts....
 
Previous - 1 | 2 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
JCH/Vibrants
psych
Trap/Bonzai
pcollins/Quantum
marty/RADWAR
Ninja/The Dreams
Freeze/Blazon
hedning/G★P
Pushead/Hokuto Force
Guests online: 272
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Memento Mori  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Wafer Demo  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Nostalgia  (9.3)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Fullscreen Graphicians
1 Carrion  (9.8)
2 Joe  (9.8)
3 Duce  (9.8)
4 Mirage  (9.7)
5 Facet  (9.7)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.046 sec.