• CALL and Linker


    A link library is a file containing procedures (subroutines) that have been assembled into
    machine code. A link library begins as one or more source files, which are assembled into object
    files. The object files are inserted into a specially formatted file recognized by the linker utility.
    Suppose a program displays a string in the console window by calling a procedure named
    WriteString. The program source must contain a PROTO directive identifying the WriteString
    procedure:
    WriteString proto

    Next, a CALL instruction executes WriteString:

    call WriteString
    

    When the program is assembled, the assembler leaves the target address of the CALL instruction
    blank, knowing that it will be filled in by the linker. The linker looks for WriteString in the
    link library and copies the appropriate machine instructions from the library into the program’s executable file.

    In addition, it inserts WriteString’s address into the CALL instruction. If a procedure
    you’re calling is not in the link library, the linker issues an error message and does not
    generate an executable file.

    Assembly Language for x86 Processors 7th
    p154

  • 相关阅读:
    一行转多行 及多行转一行的 hive语句
    sparkSQL、dataframe
    特征工程
    python相关
    pyspark dataframe 格式数据输入 做逻辑回归
    hive sql 随机抽样
    pyspark 逻辑回归程序
    3.27模拟赛
    luogu P3217 [HNOI2011]数矩形
    bzoj 4403 序列统计
  • 原文地址:https://www.cnblogs.com/Searchor/p/16264842.html
Copyright © 2020-2023  润新知