githwxi/ATS-Postiats — pull request #40 by bbarker (2014-01-03 04:05:37+00:00)
Title: Portable code generation working

I gave it another try (see the "hello2" example), and it works (but not with .o intermediates). This one is based on your approach, but it seems I had to change some things to get it to work. I also haven't had much luck with object intermediates (it seems possibly complicated as there are .hats, .cats, .sats., .dats, .h, and .c intermediates to deal with, and we don't want to build everything).

After running:
make all
make clean

on a system with ATS2, you can copy the directory to a system without ATS, and compile the executable (after changing MYPORTDIR).