How to disable stack check?


#1

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).


#2

rustc -C no-stack-check


#3

Thanks.