How do I compile the asm generated by GCC?

前端 未结 7 1984
南方客
南方客 2020-12-04 06:18

I\'m playing around with some asm code, and something is bothering me.

I compile this:

#include 

int main(int argc, char** argv){
  p         


        
相关标签:
7条回答
  • 2020-12-04 07:11

    If you have main.s file. you can generate object file by GCC and also as

    # gcc -c main.s
    # as main.s -o main.o
    

    check this link, it will help you learn some binutils of GCC http://www.thegeekstuff.com/2017/01/gnu-binutils-commands/

    0 讨论(0)
提交回复
热议问题