Skip to main content
ARS.1
Visitor II
Question

How to output Assembly code during build process?

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

This topic has been closed for replies.

2 replies

waclawek.jan
Super User

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?