topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Saturday December 14, 2024, 11:32 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

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

Mark0

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 652
    • View Profile
    • Mark's home
    • Donate to Member
A nice practical demonstration of the level of optimiziations and features of moderns C++ compilers:

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

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
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
  • ***
  • Points: 1
  • Posts: 9,778
    • View Profile
    • Read more about this member.
    • Donate to Member
Nice little "May the 4th" cameo, too. :Thmbsup:

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
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