What is Nostr?
Arnd Bergmann /
npub1typ…9ajm
2024-05-28 14:46:49
in reply to nevent1q…82sz

Arnd Bergmann on Nostr: you should be able to get a compile-time warning for functions that use excessive ...

you should be able to get a compile-time warning for functions that use excessive stack frames by setting CONFIG_FRAME_WARN to a lower value. The default for arm64 is 2048 bytes, but around 1300 is probably a better cut-off to see the worst offenders without too much output overall.

It looks like we are missing a warning flag for the rust compiler, which I would have expected to complain about a >2K stack. I tried passing -Cllvm-args=-fwarn-stack-size=2048, but that doesn't work.
Author Public Key
npub1typcx3f2hjywh3ratzfgjlfv3vd349wdhw0se9ghsnp8xp52wy3s3a9ajm