I'm on macOS (latest version). I know that gcc can produce assembly source code with the -S option. That works fine.
My problem is that I can't get it to produce assembly source that is annotated with my C source code, so I can see which assembly instructions are relevant to a particular section of my C.
I'm trying to follow the instructions on this page: https://www.systutorials.com/240/generate-a-mixed-source-and-assembly-listing-using-gcc/
But when I run this command:
gcc -Wa,-adhln -g hello.c > hello.s
I get this error:
clang: error: unsupported argument '-adhln' to option 'Wa,'
Is this something that is particular to the macOS version of gcc? I'm assuming that that article was written primarily for Linux users. Anyone else come across an issue like this?
 
    