mirror of https://github.com/Nonannet/copapy.git
added alloca stack allocation in entry_function_shell
This commit is contained in:
parent
a76b804106
commit
909af97ad0
|
|
@ -10,6 +10,7 @@ stencil_func_prefix = '__attribute__((naked)) ' # Remove callee prolog
|
||||||
def get_aux_funcs() -> str:
|
def get_aux_funcs() -> str:
|
||||||
return f"""
|
return f"""
|
||||||
{entry_func_prefix}int entry_function_shell(){{
|
{entry_func_prefix}int entry_function_shell(){{
|
||||||
|
void *p = alloca(64);
|
||||||
result_int(0);
|
result_int(0);
|
||||||
return 1;
|
return 1;
|
||||||
}}
|
}}
|
||||||
|
|
@ -123,7 +124,7 @@ if __name__ == "__main__":
|
||||||
// Auto-generated stencils for copapy
|
// Auto-generated stencils for copapy
|
||||||
// Do not edit manually
|
// Do not edit manually
|
||||||
|
|
||||||
#define bool int
|
include <alloca.h>
|
||||||
|
|
||||||
volatile int dummy_int = 1337;
|
volatile int dummy_int = 1337;
|
||||||
volatile float dummy_float = 1337;
|
volatile float dummy_float = 1337;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue