C++14 for the Commodore 64 [video]
youtube.com
C++14 for the Commodore 64 [video]
1–10 of 28 posts
Re: C++14 for the Commodore 64 [video]
#2...Oh, if you jump to about halfway through he starts using an x86->65xx translator. Okay. Nice.
Re: C++14 for the Commodore 64 [video]
#3The transparent optimization of modern (and not-so-modern) C++ features is not surprising, but it's cool to see in action.
Re: C++14 for the Commodore 64 [video]
#4Why is he doing this with an x86 compiler. The c64 used a 6510. None of this code would ever work. ...Oh, if you jump to about halfway through he starts using an x86->65xx translator. Okay. Nice.
https://github.com/c64scene-ar/llvm-6502
Which means you can just use the clang frontend and even write C++17 code which compiles down to 6502 ML.
Re: C++14 for the Commodore 64 [video]
#5Why is he doing this with an x86 compiler. The c64 used a 6510. None of this code would ever work. ...Oh, if you jump to about halfway through he starts using an x86->65xx translator. Okay. Nice.
There already seems to be a 6502 backend for LLVM specifically geared for c64: https://github.com/c64scene-ar/llvm-6502 Which means you can just use the clang frontend and even write C++17 code which compiles down to 6502 ML.
Re: C++14 for the Commodore 64 [video]
#6Re: C++14 for the Commodore 64 [video]
#7Re: C++14 for the Commodore 64 [video]
#8Nothing gives the warm fuzzies like seeing the translator step couldn't parse anything except the code he specifically wrote for the demo...