In order to find bugs in the future, I want to have a mix file at the output: assembler + source. Found 3 ways:
- 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).
Add
-save-tempsto global compilation options. Besides the fact that it produces unnecessaryiifiles, there is also no instruction address (offset) in the assembler.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?