自己动手构造编译系统:编译、汇编与链接1.3.2 编译

    xiaoxiao2023-12-06  154

    1.3.2  编译

      

         接下来GCC对hello.i进行编译,命令如下:

    $gcc –S hello.i –o hello.s

      编译后产生的汇编文件hello.s内容如下:

         .file                "hello.c"

         .section           .rodata

    .LC0:

         .string  "Hello World!"

         .text

    .globl main

         .type        main, @function

    main:

         pushl             

    转载请注明原文地址: https://yun.8miu.com/read-114583.html
    最新回复(0)