[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Static memory footprint analysis



Hi,

is it possible to calculate the memory footprint of an RTEMS/sparc
application (which does NOT use dynamic memory allocation like
malloc()) by just analyzing the ELF file? Something like:

% sparc-rtems-objdump --headers application.exe |
sum_size_column_for_ALLOC_sections
% sparc-rtems-gdb application.exe
(gdb) print Configuration.work_space_size

and then add the outputs. Which memory consuming components are not
covered by this (i.e. is there more than ALLOC sections and RTEMS
workspace)?

(RTEMS-4.6.5 solution preferred)

Kind regards
Ingolf