Hello,
Let's say I want to create a new backend for Poly/ML, generating code for a
virtual machine, for example the Erlang BEAM Virtual Machine. The backend
would not depend on the C++ runtime, because the runtime would be the
virtual machine.
>From looking at the source code, the backend should generate target code
from the CodeTree. I could add a new directory to MLCompiler/CodeTree with
the new backend code, and add a GCode.beam.ML file to the MLCompiler
directory that instantiates the GCode structure correctly.
My question is about building the compiler with the new backend enabled.
How would I add the new backend to the build and then build the compiler
with this backend enabled? I have limited experience with autoconf and
automake (mainly as a user), so taking a look at configure.ac and
Makefile.am didn't give me clues on how to tie everything together. I also
see that there is a RootXX.ML file for each target architecture that
compiles the source files in order, but a comment in these files say they
were generated from the make files.
So any tips or pointers are appreciated.
--
[]s, Andrei Formiga