pub fn create_entry_code_from_params(
param_types: &[(GenericTypeId, i16)],
return_types: &[(GenericTypeId, i16)],
code_offset: usize,
config: EntryCodeConfig,
) -> Result<(Vec<Instruction>, Vec<BuiltinName>), BuildError>Expand description
Creates the entry code to call the function.
§Arguments
param_types- The types and sizes of the parameters of the function.return_types- The types and sizes of the return values of the function.code_offset- The offset of the entry_point in the CASM program (before adding the executable header).config- The configuration for the entry code creation.
§Returns
A Result containing a tuple with a vector of Instructions and a vector of BuiltinNames, or
a BuildError.