9. Compiling Hume Programs

First of all, make sure that the Hume compiler humec has been installed and can be found in your path, e.g. doing


   cd INSTALLATION/bin  
   export PATH=$PATH:`pwd` 
To compile a file with name sum11.hume type the following command: humec -lotsaspace sum11.hume

This will generate an executable with name sum11, as well as some intermediate files, which you can ignore. You can now run the program by typing: ./sum11

To get a list of available options type: humec -h

In particular, you can define the locations of the Hume-to-HAM and HAM-to-C compilers from the command line or in an explicitly specified file (default is .humecrc).