[4200b7e] | 1 | cfa-cc: Cforall to C Trans-compiler |
---|
[51b7345] | 2 | ====================================== |
---|
| 3 | |
---|
[b87a5ed] | 4 | Cforall is built using GNU Make and the GNU Autoconf system. It also requires |
---|
[4200b7e] | 5 | g++ version >= 6, bison and flex. On systems where GNU Make is the default |
---|
[08061589] | 6 | make, the system is built by entering the commands: |
---|
[51b7345] | 7 | |
---|
[4200b7e] | 8 | For developers using the root git: |
---|
[d6cd371] | 9 | |
---|
[4200b7e] | 10 | $ ./autogen.sh |
---|
[e75b753] | 11 | $ ./configure [ --prefix=/some/directory ] |
---|
[4200b7e] | 12 | $ make -j 8 install |
---|
[d6c59bce] | 13 | $ cfa |
---|
[51b7345] | 14 | |
---|
[7de2affc] | 15 | For users using the distributed tarball / github: |
---|
[d6cd371] | 16 | |
---|
[4200b7e] | 17 | $ ./configure |
---|
| 18 | $ make -j 8 install |
---|
[d6c59bce] | 19 | $ cfa |
---|
[4200b7e] | 20 | |
---|
| 21 | where 8 is the number of CPUs on your computer. |
---|
| 22 | |
---|
[d6c59bce] | 23 | The above instructions produce an in-tree, installed build, where intermediate |
---|
| 24 | binaries share the same folders as their sources, and where the final result |
---|
| 25 | becomes an "official" CFA version for the current environment. For developers |
---|
| 26 | preferring an isolated side-by-side build, where all binaries are separated |
---|
| 27 | from sources, where it is possible to build multiple configurations from a |
---|
| 28 | common set of sources, and where no "official" CFA version is designated: |
---|
| 29 | |
---|
| 30 | $ ./autogen.sh |
---|
| 31 | $ mkdir ../build |
---|
| 32 | $ cd ../build |
---|
| 33 | $ ../cfa-cc/configure |
---|
| 34 | $ make -j 8 |
---|
| 35 | $ ./driver/cfa |
---|
| 36 | |
---|
[d6cd371] | 37 | |
---|
[e75b753] | 38 | Options for configure |
---|
[4200b7e] | 39 | ====================================== |
---|
[e75b753] | 40 | The script 'configure' accepts many command-line arguments. Run |
---|
| 41 | |
---|
| 42 | $ ./configure --help |
---|
| 43 | |
---|
| 44 | to list them. The most common argument is: |
---|
| 45 | |
---|
| 46 | --prefix=/some/directory controls the path prefix common to all installed |
---|
| 47 | cfa-cc components. Components are installed in directories bin and lib. |
---|
| 48 | If unspecified, prefix defaults to /usr/local. To use (a subdirectory of) |
---|
| 49 | your home directory, ${HOME}/some/dir, but do not put quotes around the |
---|
| 50 | directory path; Cforall may appear to build, but the installed version may |
---|
| 51 | not work properly. |
---|
[4200b7e] | 52 | |
---|
| 53 | |
---|
| 54 | Build Test |
---|
| 55 | ====================================== |
---|
| 56 | |
---|
[a3bd827] | 57 | $ cd ./tests |
---|
[061b001] | 58 | $ make -j 8 all-local |
---|
[4200b7e] | 59 | |
---|
| 60 | The tests take about 2-5 minutes and can be stopped at any time. |
---|