package lustre-v6
Module Soc2cStackSource
Gathers all entities (functions, types) that implement the heap-based C generator.
gen_assign t vi vo size generated the C code that assign vo to vi, using memcpy or = depending on the type t
ditto
Generates the C step name from the soc key and the soc step name
Returns the prototype (.c) and the decl (.h) of the step function. For the stack based approach, we need to arg I/O params.
gen_step_call soc called_soc vel_out vel_in ctx sname step_arg Generates the C code that performs the call to a step method of called_soc from soc.
vel_outandvel_inare the called_soc O/I argumentsctxis the C name of the context of the called_socsnameis the C name of the step to callstep_argis a string holding the arg of the step (empty for proc call)
Source
val gen_step_call :
Soc.t ->
Soc.t ->
Soc.var_expr list ->
Soc.var_expr list ->
string ->
string ->
string ->
string