30.07.2013 Views

The Esterel v5 21 System Manual - Courses

The Esterel v5 21 System Manual - Courses

The Esterel v5 21 System Manual - Courses

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2.6. OPTIONS OF THE ESTEREL COMMAND 27<br />

esterel foo.strl<br />

Here, the generated C file is called foo.c. If there is more than<br />

one argument, the default basename is esterel. Since this is<br />

often inconvenient, the -B option allows to define the basename.<br />

For example, the call<br />

esterel foo.strl bar.strl -B foo<br />

puts its result in file foo.c in the current directory.<br />

-D Define the directory in which to place the generated files<br />

<strong>The</strong> default directory in which the output file is generated is the<br />

current working directory. <strong>The</strong> -D option modifies this directory.<br />

For example, the call<br />

esterel foo.strl -D /tmp<br />

puts its result in file foo.c in /tmp.<br />

2.6.6 Partial Compilation<br />

It is sometimes convenient to stop compiling at some intermediate code level.<br />

<strong>The</strong> following options determine at which level to stop:<br />

-ic Stop the compilation after the production of the ic intermediate<br />

code files. This option is especially useful to store intermediate<br />

code in libraries. For example, the following command puts the<br />

ic code of its argument files in foo.ic, bar.ic and foobar.ic:<br />

esterel -ic foo.strl bar.strl foobar.strl<br />

Notice that each .strl file generates a .ic file.<br />

-lc Stop the compilation after the production of the lc linked intermediate<br />

code file.<br />

This option stops the compilation after the iclc processor has<br />

been run. Unlike for the -ic command, there is only one output<br />

file whose name is determined either by the basename of the argument<br />

file if there is only one file argument or by the -B and -D<br />

options (default ./esterel.lc). For example, the command<br />

esterel -lc foo.ic<br />

generates a single linked file foo.lc, the command

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!