How to disable stack check?

Is there a simple way to disable the runtime stack check operations that get inserted in the function header (the call to __morestack)?

I would like to be able to disable it to see if there is any measurable overhead associated with this runtime check (I don't expect that there is).

rustc -C no-stack-check

1 Like

Thanks.