DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Video: Rich Code for Tiny Computers: A Simple Commodore 64 Game in C++17  (Read 6,053 times)

Mark0

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 654
A nice practical demonstration of the level of optimiziations and features of moderns C++ compilers:

« Last Edit: May 04, 2017, 08:02 PM by Mark0 »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Just watched it.  Very nice.
We are always told how well compilers can optimize code, but it's nice to see just how seriously the C++ compilers take their job of optimizing code.

One of the other things that this video hammers home is how much of the new C++ language features are designed to help the programmer write in verbose, elegant, human-readable object oriented code, while at the same time helping the compiler to optimize most of that away into nothingness.

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 9,827
    • Participated in NANY Challenge Eight Times
    • Cody Award
Nice little "May the 4th" cameo, too. :Thmbsup:

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
That is absolutely crazy, and super cool!

p3lb0x told me about the video a while ago, but didn't get around to watching it until now. The focus on zero-overhead abstractions in C++ is one of the extremely strong features of the language, and something I haven't really seen in other languages.

Oh, and translating x86 assembly to 6510? Pretty cool, even though it's just a subset - pretty interesting that it was more viable than a LLVM codegen :)
- carpe noctem

Original address: https://www.donationcoder.com/forum/index.php?topic=43795.0