Answer the question
In order to leave comments, you need to log in
How to see the output of the linker?
I am writing a program for a microcontroller, the memory is sorely lacking.
Is there a way to see what and how much takes up space in the final collected file?
Am I using GCC 4.7?
PS If it's possible, then it would be very useful to know what size each file is, in what order the sizes of individual elements are included.
Answer the question
In order to leave comments, you need to log in
For these purposes, there is a whole set of utilities. Development packages usually put these tools next to GCC.
Here, the first thing that came to mind: https://sourceware.org/binutils/docs/binutils/objd...
I think that even if this is not the right one, then there you will find the tool you need.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question