Test platform is 32 bit Linux.
Basically, I know gcc can be used to generate both Intel and At&T style assembly code, but it seems that you can not<
If you're lazy: https://github.com/diogovk/c2nasm
There I have a script that does Babken Vardanyan's suggestion automatically.