D
D
Denis2016-11-13 10:17:37
C++ / C#
Denis, 2016-11-13 10:17:37

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

1 answer(s)
E
Evgeny Shatunov, 2016-11-13
@lacredin

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 question

Ask a Question

731 491 924 answers to any question