You don't "compile" assembly code, you "assemble" it! That said, your compiler driver can probably do it. A common filename extension for assembly source code is .s
, so maybe something like:
cc -o example example.s
Then, if it worked, you'll have an executable named example
to run, test, and debug.