Add predicted stack overflow warning (#4799).

This commit is contained in:
Wilson Snyder 2024-01-06 16:16:14 -05:00
parent 0ca90257a5
commit 68e4eeb53e

View File

@ -3015,7 +3015,7 @@ void Verilated::stackCheck(QData needSize) VL_MT_UNSAFE {
// if the user follows the suggestions
if (VL_UNLIKELY(haveSize && needSize && haveSize < (needSize + needSize / 2))) {
VL_PRINTF_MT("%%Warning: System has stack size %" PRIu64 " kb"
" which may be too small; suggest at least 'ulimit -c %" PRIu64 "'\n",
" which may be too small; suggest 'ulimit -c %" PRIu64 "' or larger\n",
haveSize / 1024, (needSize * 2) / 1024);
}
#else