cancel
Showing results for 
Search instead for 
Did you mean: 

How to output Assembly code during build process?

ARS.1
Associate

Request someone to suggest the build settings to output assembly code while compiling in STM32CubeIDE.

2 REPLIES 2

You are talking about gcc options, see gcc manual (and perhaps as/gas manual for the assembler options, see -Wa,-a below)

-S outputs asm only (i.e. won't assemble into object)

-save-temps outputs intermediate files

-Wa,-adlns=somefile.lst outputs assembler's listing (-a is the main flag, "dlns" are just modifiers detemining what goes into the listing)

JW

berendi
Principal

Have you looked in the .list file generated along the executanble?