0

I want to find out if any too big non-static local variables are declared and used by some software developer in our team. Are there any GCC options and/or objdump parameters or something to produce and show information about local variables and their sizes?

xiaokaoy
  • 1,608
  • 3
  • 15
  • 27

1 Answers1

1

Perhaps you could use GCC's -Wstack-usage or -Wframe-larger-than to warn on too big stack frames?

yugr
  • 19,769
  • 3
  • 51
  • 96
  • That's great. While -Wstack-usage doesn't work in my compiler, -Wframe-larger-than works perfectly. – xiaokaoy Dec 12 '16 at 02:48