lux - all in one Lustre compilation

NAME

lux - all in one Lustre compilation

SYNOPSIS

lux file.lus node

lux file.ec

lux file.oc

DESCRIPTION

This shell script performs all the compilation stages necessary to produce a binary file from a lustre (resp. ec or oc) program. A main node is expected when starting from the lustre level.

The binary generation only works for basic lustre programs (resp. ec or oc), that means programs that do not need any external definitions to work (external types, constants, functions).

The several stages are depending on the input format:

lus:

call lus2ec, then ec2c with the -loop option, and then the gnu C-compiler/linker gcc.

ec:

call ec2c with the -loop option, and then gcc.

oc:

calls poc with the -loop, and then gcc.

When the compilation succeeds, the name of the resulting program is the name of the main lustre node (resp. the ec node or the oc module).

NOTES

Indeed, Lustre distribution does not provide a C compiler. The lux script supposes that the gnu-C compiler is properly installed, but the user may customize the script in order to use another available compiler.

 lux - all in one Lustre compilation