(Apollo Team Member)
13 Nov 2018 11:07
|Martin Soerensen wrote:|
Transpiling from C++14/17 to C++11 code:
It would be cool if this principle could be taken even further so it would be possible to use modern C++ features and transpile it into source code that could be compiled by 68k C/C++ compilers. This would really help bring 68080 development into the present. There are a lot of neat features being added to C++, all designed to speed up the development and reduce the risk of bugs while still keeping the performance up.
I know that GCC is working reasonably well on 68k now, but which feature set does this version implement? C++11?
This is indeed cool. I am a big fan of modern compiler features being brought to the Amiga because they aid the developer to make cool stuff. Also, the Vampire makes it realistic to run more power hungry apps which exist on other platforms, the porting of which might require more modern compiler features.
An alternative to the transpiling is to just use Bebbo's compiler which is a port of GCC 6. It is of course a WIP but is quite advanced already. Not sure about the state the C++14/17 in either GCC 6 or this port but some idea might be found here:
I have been using this for some time now and it is quite good. I have yet to push the C++1X support but what I have used so far has worked nicely.