In order to find bugs in the future, I want to have a mix file at the output: assembler + source. Found 3 ways:

  1. For each source we reload the compilation line:

$compiler $options $includes -c $file -o $object

It became:

$compiler $options -Wa,-adhln=$file.lst $includes -c $file -o $object

In principle, it suits you, BUT it needs to be changed in the whole project (and this is ~ 100 "cpp" files).

  1. Add -save-temps to global compilation options. Besides the fact that it produces unnecessary ii files, there is also no instruction address (offset) in the assembler.

  2. Changing global compilation options again. Add a line like:

-Wa,-adhln="myfile.lst"

The method is much more preferable, if not for one BUT, how to make myfile be different for each file? I tried a bunch of built-in options like $(ACTIVE_EDITOR_FILENAME) - it's not that ...

Can anyone come across?

    1 answer 1

    Found a solution here: http://wiki.codeblocks.org/index.php/Adding_support_for_non_C/C%2B%2B_files_to_the_build_system

    In short, it is necessary to change the compilation settings not for the project, but for Code :: Blocks as a whole.