首页 存档 技术 查看内容

Go汇编学习 2.解构AMD64 bytes.Equal

2018-3-30 13:00 |来自: 互联网 371 0

摘要: 上一篇学了内存结构基本知识,本文将学习符号(symbol)、语句的含义。 我个人喜欢通过例子来学习,所以,我就从src/runtime/asm_amd64.s里的bytesEqual入手吧:) 对应代码 预备知识 SB (static base)相关知识 以 ...

上一篇学了内存结构基本知识,本文将学习符号(symbol)、语句的含义。 我个人喜欢通过例子来学习,所以,我就从src/runtime/asm_amd64.s里的bytesEqual入手吧:)

对应代码


预备知识

SB (static base)相关知识

以下是Go asm中的介绍

The SB pseudo-register can be thought of as the origin of memory, so the symbol foo(SB) is the name foo as an address in memory. This form is used to name global functions and data. Adding

声明:文章版权归原作者所有 部分文章转自互联网 如有侵权请联系 [邮箱地址] 删除

路过

雷人

握手

鲜花

鸡蛋

相关分类

返回顶部