What does this error mean: `somefile.c:200: error: the frame size of 1032 bytes is larger than 1024 bytes`?

后端 未结 3 1592
时光说笑
时光说笑 2021-02-02 09:21

During a make, I\'m seeing an error along the lines of:

cc1: warnings being treated as errors
somefile.c:200: error: the frame size of 1032 bytes is larger than         


        
3条回答
  •  面向向阳花
    2021-02-02 10:00

    Here is the GCC documentation referring to this warning:

    STACK_CHECK_MAX_FRAME_SIZE

    The maximum size of a stack frame, in bytes. GNU CC will generate probe instructions in non-leaf functions to ensure at least this many bytes of stack are available. If a stack frame is larger than this size, stack checking will not be reliable and GNU CC will issue a warning. The default is chosen so that GNU CC only generates one instruction on most systems. You should normally not change the default value of this macro.

    From http://gcc.gnu.org/onlinedocs/gcc-2.95.3/gcc_17.html#SEC214

提交回复
热议问题