免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: wwwsq
打印 上一主题 下一主题

再顺便强x一下某昏昏吧 [复制链接]

论坛徽章:
0
31 [报告]
发表于 2012-05-28 14:23 |只看该作者
zhaohongjian000 发表于 2012-05-28 14:18
谁在抠字眼?名字相同就联系到一起,大概不是抠字眼?



http://docs.freebsd.org/info/gcc ... ion_Attributes.html

你还是先去看看这篇文章吧。。。。

论坛徽章:
12
巳蛇
日期:2013-09-16 15:32:242015年辞旧岁徽章
日期:2015-03-03 16:54:152015年亚洲杯之约旦
日期:2015-02-11 14:38:37双鱼座
日期:2015-01-05 11:05:47戌狗
日期:2014-12-08 09:41:18戌狗
日期:2014-08-15 09:29:29双子座
日期:2014-08-05 09:17:17卯兔
日期:2014-06-08 15:32:18巳蛇
日期:2014-01-27 08:47:08白羊座
日期:2013-11-28 21:04:15巨蟹座
日期:2013-11-13 21:58:012015年亚洲杯之科威特
日期:2015-04-17 16:51:51
32 [报告]
发表于 2012-05-28 14:25 |只看该作者
wwwsq 发表于 2012-05-28 14:23
http://docs.freebsd.org/info/gcc ... ion_Attributes.html

你还是先去看看这篇文章吧 ...


我猜再怎么跟你强调你都不会明白语言的实现和标准的区别,你要是真看了,有没有发现第一句是“In GNU C”?

论坛徽章:
2
程序设计版块每日发帖之星
日期:2015-06-17 22:20:00每日论坛发贴之星
日期:2015-06-17 22:20:00
33 [报告]
发表于 2012-05-28 14:26 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
12
巳蛇
日期:2013-09-16 15:32:242015年辞旧岁徽章
日期:2015-03-03 16:54:152015年亚洲杯之约旦
日期:2015-02-11 14:38:37双鱼座
日期:2015-01-05 11:05:47戌狗
日期:2014-12-08 09:41:18戌狗
日期:2014-08-15 09:29:29双子座
日期:2014-08-05 09:17:17卯兔
日期:2014-06-08 15:32:18巳蛇
日期:2014-01-27 08:47:08白羊座
日期:2013-11-28 21:04:15巨蟹座
日期:2013-11-13 21:58:012015年亚洲杯之科威特
日期:2015-04-17 16:51:51
34 [报告]
发表于 2012-05-28 14:29 |只看该作者
pmerofc 发表于 2012-05-28 14:26
论坛无赖的常所用招数之一:
一旦被逼到绝境
就让别人去看东西


好像把我也打击到了

你们继续吧,我该干正事了。

论坛徽章:
0
35 [报告]
发表于 2012-05-28 14:30 |只看该作者
zhaohongjian000 发表于 2012-05-28 14:25
我猜再怎么跟你强调你都不会明白语言的实现和标准的区别,你要是真看了,有没有发现第一句是“In GNU C ...



`const'
     Many functions do not examine any values except their arguments,
     and have no effects except the return value.  Such a function can
     be subject to common subexpression elimination and loop
     optimization just as an arithmetic operator would be.  These
     functions should be declared with the attribute `const'.  For
     example,

          int square (int) __attribute__ ((const));

     says that the hypothetical function `square' is safe to call fewer
     times than the program says.

     The attribute `const' is not implemented in GNU C versions earlier
     than 2.5.  An alternative way to declare that a function has no
     side effects, which works in the current version and in some older
     versions, is as follows:

          typedef int intfn ();
         
          extern const intfn square;

     This approach does not work in GNU C++ from 2.6.0 on, since the
     language specifies that the `const' must be attached to the return
     value.


我贴这段讲const的出来给你看。



`stdcall'
     On the Intel 386, the `stdcall' attribute causes the compiler to
     assume that the called function will pop off the stack space used
     to pass arguments, unless it takes a variable number of arguments.


再贴一段stdcall的说明来给你看。


要我翻译成汉语吗?

论坛徽章:
2
程序设计版块每日发帖之星
日期:2015-06-17 22:20:00每日论坛发贴之星
日期:2015-06-17 22:20:00
36 [报告]
发表于 2012-05-28 14:36 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
37 [报告]
发表于 2012-05-28 14:36 |只看该作者
很多人如果不了解函数也是有属性的,那也是正常的。因为这和日常工作关系也不大,就像吃饭的人没必要知道稻谷是那个品系的。

但是如果以无知当有趣,还要站出来卖弄,那就要做好被人强x的准备。

论坛徽章:
0
38 [报告]
发表于 2012-05-28 14:39 |只看该作者
pmerofc 发表于 2012-05-28 14:36
我也没空和论坛无赖周旋
先让他飞一会


你这是煮熟的鸭子嘴硬呀

胡乱发表一些谬论,被反驳了就缩回去了。

论坛徽章:
2
程序设计版块每日发帖之星
日期:2015-06-17 22:20:00每日论坛发贴之星
日期:2015-06-17 22:20:00
39 [报告]
发表于 2012-05-28 14:39 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
40 [报告]
发表于 2012-05-28 14:43 |只看该作者
pmerofc 发表于 2012-05-28 14:39
论坛无赖绝技之二:
偷换概念
函数是“对象”,因此可以搞


以面向对象的思想,这个世界什么不是对象?

函数本身也是gcc编译的“对象”,也是有属性的。

gcc编译过程对你而言,大概太艰深了吧?在学校学过编译原理吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP