On Mon, 21 Dec 2020 at 21:05, Massimiliano Cialdi <
cia...@gmail.com> wrote:
> It is one of the requirements that have emerged as "convenient" over time, in the company where I work.
> It is not only about the object files, but mostly about the listing files (.lst files).
> The projects I'm involved in are aimed at microcontrollers. These are bare metal firmwares, with at most one RTOS scheduler. Everything is written by us. There are dozens of directories with many hundreds of .c files in them.
> And .lst files are extremely useful in many aspects of debugging and profiling.
What do those lst files contain and how are they generated? If you
create them yourself with a custom script or command, then the output
will go in the build directory where the the custom_target command is
defined. So if you have it in src_root/foo/meson.build the output will
go to build_root/foo/yourthing.lst.
If you need detailed information about each build target, you might be
able to get what you need using `meson introspect`. See:
https://mesonbuild.com/IDE-integration.html
The page says IDE integration because that is what the functionality
was originally written for, but the data is available to all tools
that need it.