计算机组成结构化方法 英文第七版,计算机组成结构化方法7.ppt

本文探讨了Pentium4、Motorola 680x0和SPARC架构的汇编语言实例,比较了不同平台的指令格式,并详细讲解了Pentium4汇编器中的伪指令和宏定义。通过实例展示了宏的使用及其与过程调用的区别,同时介绍了两阶段装配过程和符号表的构建。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

计算机组成结构化方法7

Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved. 0-13-148521-0 The Assembly Language Level Chapter 7 Why Use Assembly Language? Comparison of assembly language and high-level language programming, with and without tuning. Format of an Assembly Language Statement (1) Computation of N = I + J. (a) Pentium 4. Format of an Assembly Language Statement (2) Computation of N = I + J. (b) Motorola 680x0. Format of an Assembly Language Statement (3) Computation of N = I + J. (c) SPARC. Pseudoinstructions (1) Some of the pseudoinstructions available in the Pentium 4 assembler (MASM). Pseudoinstructions (2) Some of the pseudoinstructions available in the Pentium 4 assembler (MASM). Macro Definition, Call, Expansion (1) Assembly language code for interchanging P and Q twice. (a) Without a macro. (b) With a macro. Macro Definition, Call, Expansion (2) Comparison of macro calls with procedure calls. Macros with Parameters Nearly identical sequences of statements. (a) Without a macro. (b) With a macro. Two Pass Assemblers (1) The instruction location counter (ILC) keeps track of the address where the instructions will be loaded in memory. In this example, the statements prior to MARIA occupy 100 bytes. Two Pass Assemblers (2) A symbol table for the program of Fig. 7-7. Two Pass Assemblers (3) A few excerpts from the opcode table for a Pentium 4 assembler. Pass One (1) Pass one of a simple assembler. Pass One (2) Pass one of a simple assembler. Pass One (3) Pass one of a simple assembler. Pass Two (1) Pass two of a simple assembler. Pass Two (2) Pass two of a simple assembler. The Symbol Table (1) Hash coding. (a) Symbols, values, and the hash codes derived from the symbols. The Symbol Table (2) Hash coding. (b) Eight-entry hash table with linked lists of symbols and values. Linking and Loading Generation of an executable binary program from a collection of independently translated source proce

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值