Chinaunix首页 | 论坛 | 博客
  • 博客访问: 258585
  • 博文数量: 52
  • 博客积分: 1379
  • 博客等级: 大尉
  • 技术积分: 525
  • 用 户 组: 普通用户
  • 注册时间: 2006-06-18 17:34
文章分类

全部博文(52)

文章存档

2011年(48)

2010年(4)

分类: LINUX

2011-03-08 18:29:57

asm ("movl $1, %ebx\n");
int main()
{
}

这种asm有什么用?


glibc中看见个使用
.c可能会被直接生成汇编代码...

/* This file is compiled into assembly code which is then munged by a sed
   script into two files: crti.s and crtn.s.

   * crti.s puts a function prologue at the beginning of the
   .init and .fini sections and defines global symbols for
   those addresses, so they can be called as functions.

   * crtn.s puts the corresponding function epilogues
   in the .init and .fini sections. */

阅读(2134) | 评论(0) | 转发(0) |
0

上一篇:macro_arg_subst

下一篇:current & pthread_self

给主人留下些什么吧!~~