Chinaunix首页 | 论坛 | 博客
  • 博客访问: 120316
  • 博文数量: 76
  • 博客积分: 2510
  • 博客等级: 少校
  • 技术积分: 831
  • 用 户 组: 普通用户
  • 注册时间: 2007-12-31 00:52
文章分类

全部博文(76)

文章存档

2010年(58)

2009年(18)

我的朋友

分类:

2010-04-09 10:22:22

— Built-in Function: void * __builtin_return_address (unsigned int level)

This function returns the return address of the current function, or of one of its callers. The level argument is number of frames to scan up the call stack. A value of 0 yields the return address of the current function, a value of 1 yields the return address of the caller of the current function, and so forth. When inlining the expected behavior is that the function will return the address of the function that will be returned to. To work around this behavior use the noinline function attribute.


Refer to:

http://gcc.gnu.org/onlinedocs/gcc/Return-Address.html

http://blog.chinaunix.net/u/12592/showart_1679862.html

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