Overview Features Instructions Performance Forum Downloads Products OrderV4 Reseller Contact

Welcome to the Apollo Forum

This forum is for people interested in the APOLLO CPU.
Please read the forum usage manual.



All TopicsNewsPerformanceGamesDemosApolloVampireAROSWorkbenchATARIReleases
Documentation about the Vampire hardware

Transpiling From Modern C++ Code

Martin Soerensen

Posts 232
13 Nov 2018 10:48


Transpiling from C++14/17 to C++11 code:
EXTERNAL LINK 
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?


Ronnie Beck
(Apollo Team Member)
Posts 191
13 Nov 2018 11:07


Martin Soerensen wrote:

  Transpiling from C++14/17 to C++11 code:
    EXTERNAL LINK   
    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:
 
  EXTERNAL LINK   
  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.

posts 2