pub fn generate(
tast: &Tast,
ccfg: &System,
foreign: &ForeignModules,
) -> Result<Vec<CFile>>Expand description
Generate the C sources for a validated Fiducia project: one .c
translation unit per protection domain. The units include
[DATA_HEADER].
Kernel entry points are selected by @bind (see
crate::microkit): the process bound to microkit.init
becomes init(), and the one bound to microkit.notified becomes the
notified() event loop. The process name is not special.
The declarations, types and bodies are tast’s and the graphs the
Ccfg’s.
§Errors
A PD that does not bind both entry points, or an init process that
receives.