CNDEV
...
...
账号
登
登录
先
先随便看看
中国开发网
: 论坛:
程序员情感CBD
: 贴子 276788
老玉米
·
2006-01-16 14:48:28
·
阅读: 433
Fuck off...
Do u get this?
相关信息:
gcc居然对inline忽略掉
(19字)
(
GoodHope
[554]
2006-01-16 14:07
)
inline is just a suggestion in C++ specification..
(空) (
老玉米
[494]
2006-01-16 14:12
)
btw: maybe g++ compiler has a special parameter to using inline option constrainedly.
(11字)
(
老玉米
[562]
2006-01-16 14:15
)
g++一球样
(空) (
GoodHope
[414]
2006-01-16 14:17
)
..
(66字)
(
老玉米
[398]
2006-01-16 14:29
)
说啥呢!
(16字)
(
GoodHope
[409]
2006-01-16 14:41
)
Fuck off...
(14字)
(
老玉米
[432]
2006-01-16 14:48
)
fixed: maybe setting a special parameter of g++ can inform compiler using inline option a……
(空) (
老玉米
[496]
2006-01-16 14:23
)
arbitrarily..
(空) (
老玉米
[461]
2006-01-16 14:25
)
-g 了吧 -O2 以下了吧
(16字)
(
holly
[835]
2006-01-16 14:31
)
默认参数,什么都没加。有什么办法能够让gcc支持__asm?
(21字)
(
GoodHope
[643]
2006-01-16 14:38
)
gcc 没有象 vc/bcc 那样的 asm 支持的
(17字)
(
holly
[453]
2006-01-16 14:45
)
asm("")不可以,它直接把字符串插入到汇编语言中。
(53字)
(
GoodHope
[591]
2006-01-16 14:51
)
可以的, 使用 : 后的 input/output 名字以及在指令中用 %0, %1, 等等
(69字)
(
holly
[491]
2006-01-16 15:02
)
给几个例子吧,另外我用的ARM
(空) (
GoodHope
[419]
2006-01-16 15:37
)
搞掂了,语法真TMD古怪
(空) (
GoodHope
[492]
2006-01-16 16:04
)
没有-g,加了-O2后,函数的进出代码被优化掉了,但是依然没有把函数嵌入到调用位置。
(空) (
GoodHope
[503]
2006-01-16 14:46
)
-O3 就 inline 了
(793字)
(
holly
[544]
2006-01-16 15:06
)
还是不行
(16字)
(
GoodHope
[503]
2006-01-16 15:32
)
唉,这个函数要调用次数是千万级,进出各N个时钟周期,在一个200M的CPU上
(10字)
(
GoodHope
[895]
2006-01-16 14:58
)
__forceinline
(空) (
bjwf
[669]
2006-01-16 15:00
)
欢迎光临本社区,您还没有登录,不能发贴子。请在
这里登录