-
Notifications
You must be signed in to change notification settings - Fork 9
/
README.lustrec
39 lines (30 loc) · 991 Bytes
/
README.lustrec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
To compile Lustrec:
------------------
# autoconf
# ./configure
# make
# make install
To use lustrec:
--------------
In a modular setting:
# lustrec <filename.lus>
will generate filename.c and filename.h
With a main node:
# lustrec -node <main_node> <filename.lus>
will generate the same two files,
but also filename_main.c that contains a main function
and filename_alloc.h that contains the node allocation macros
With a main node, with a static memory allocation scheme:
# lustrec -node <main_node> -dynamic <filename.lus>
same as above, but main function will dynamically allocate node memory
To compile it:
# gcc -Iinclude filename.c
# gcc -Iinclude filename_main.c
where include links to the include folder
To run it with the generated main function:
- compile the io_frontend.o
# gcc -c include/io_frontend.c
# gcc -Iinclude -o target_name io_frontend.o filename.o filename_main.o
# ./target_name
To analyze it with frama-c
# frama-c -cpp-extra-args='-Iinclude' filename.c