Skip to main content
ARS.1
Visitor II
May 1, 2020
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
May 1, 2020

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
May 1, 2020

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