0

Is there any way to find the space allocated to various variables and files when compiled with gcc compiler.

fuz
  • 88,405
  • 25
  • 200
  • 352
Ginu Jacob
  • 1,588
  • 2
  • 19
  • 35

1 Answers1

0

You can easily use the map file to find the allocations for static varibles.

If you want to sort this information based on the file containing the declaration one would have to write a program that does that, which should be possible. Same goes for code allocation.