If you want to generate assembly code from source of C with intel assembly syntax, you can use the following command with gcc ( by default gcc produces assembly in AT&T syntax) :
gcc -S -masm=intel test.c

Registers of x86 architecture
If you want to generate assembly code from source of C with intel assembly syntax, you can use the following command with gcc ( by default gcc produces assembly in AT&T syntax) :
gcc -S -masm=intel test.c