Chinaunix首页 | 论坛 | 博客
  • 博客访问: 60998363
  • 博文数量: 173
  • 博客积分: 10400
  • 博客等级: 上将
  • 技术积分: 5973
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-03 22:08
文章分类

全部博文(173)

文章存档

2013年(2)

2012年(1)

2011年(17)

2010年(28)

2009年(76)

2008年(49)

分类:

2008-04-30 16:27:06

最近研究BSP,遇到些汇编问题

这网站上还有很信息可以参考,certainly,也许你用不着那么多,权当查字典了:)

Assembler Language Reference

.globl Pseudo-op

Purpose

Makes a symbol globally visible to the linker.

Syntax

.globl

Description

The .globl pseudo-op makes the symbol Name globally visible to the linker and available to any file that is linked to the file in which the .globl pseudo-op occurs.

  • If the .globl pseudo-op is not used for a symbol, then that symbol is, unless otherwise effected, only visible within the current assembly and not to other modules that may later be linked to the current assembly. Alternately, the .extern or .weak pseudo-op can be used to effect visibility.
  • If Name is defined in the current assembly, its type and value arise from that definition, not the .globl definition.
  • The binder maps all common segments with the same name into the same memory. If the name is declared .globl and defined in one of the segments, this has the same effect as declaring the common symbols to be .globl in all segments. In this way, common memory can be initialized.

Parameters

Name Represents any label or symbol that is defined locally and requires external visibility. This parameter can be a Qualname. (A Qualname specifies a Name and StorageMappingClass for the control section.)

Examples

The following example illustrates the use of the .globl pseudo-op:

   .globl main
main:
   .csect data[rw]
   .globl data[rw]

Related Information

.

The pseudo-op, pseudo-op, and the pseudo-op.

阅读(1530) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~