Search notes:

gcc -fverbose-asm

If compiling with -S to produce assembly output, adding the -fverbose-asm flag adds extra inline-commentary to the produced file to make it more readable.

prog.c

A simple program:
//
//  gcc -S -fverbose-asm verbose-asm.c
//    or
//  gcc -S -fverbose-asm verbose-asm.c -Os -o
//
#include <stdio.h>

int main() {

  int i = 6;
  int j = 7;
  int k = 6*7;

  printf("i=%d, j=%d, i*j=%d\n", i, j, k);

}
Github repository about-gcc, path: /options/f/verbose-asm/prog.c

Makefile

This is the makefile that creates proc.s with additional comments:
a.out: prog.s
	gcc $<

prog.s: prog.c Makefile
	gcc -S -fverbose-asm $< -o $@
Github repository about-gcc, path: /options/f/verbose-asm/Makefile

See also

GCC options

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1759406893, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/C-C-plus-plus/GCC/options/f/verbose-asm(69): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78