I have compiled a program main.c with about two lines of code to see what directives gcc / gas add to the unoptimized assembly file, using
main.c
gcc
gas