added alloca stack allocation in entry_function_shell

This commit is contained in:
Nicolas Kruse 2025-10-14 23:15:26 +02:00
parent a76b804106
commit 909af97ad0
1 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@ stencil_func_prefix = '__attribute__((naked)) ' # Remove callee prolog
def get_aux_funcs() -> str:
return f"""
{entry_func_prefix}int entry_function_shell(){{
void *p = alloca(64);
result_int(0);
return 1;
}}
@ -123,7 +124,7 @@ if __name__ == "__main__":
// Auto-generated stencils for copapy
// Do not edit manually
#define bool int
include <alloca.h>
volatile int dummy_int = 1337;
volatile float dummy_float = 1337;