Main Content

Run-time Stack Overflow

If your C compiler reports a run-time stack overflow, set the value of the maximum stack usage parameter to be less than the available stack size. In a project, in the project settings dialog box Memory tab, set the Stack usage max parameter. For command-line configuration objects (coder.MexCodeConfig, coder.CodeConfig, coder.EmbeddedCodeConfig), set the StackUsageMax parameter.