由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - linux code中到处都是ifdef, 怎样方便地看出真正的code path ?
相关主题
用free查到的memory里面的"cache"是做什么用的?大家帮我看看如何设计OS profiling/tracing (转载)
free64位的ubuntu下跑32位的matlab会有问题妈?
为啥 inode-cache 的内存算在 used 里面,不算在 cached 里面呢?mmap question
Linux memory leak even without our application running为啥linux各个社区不能合力开发一款好一点的Linux呢
慢机器是不是用 linux 2.4 会快一点,heheCool linux software ideas
貌似android不是全开源的。开源这班人有时真的让人无语
关于signal handler关于library preload
还是关于用GPL code的问题如何修改文件名
相关话题的讨论汇总
话题: libc话题: bsd话题: lib话题: src话题: usr
进入Linux版参与讨论
1 (共1页)
s*****w
发帖数: 1527
1
for the following, why some -D are in front of some -I ?
does that mean these defines are only for the include path following it ?
[somehow@bsd ~/bsd_src/lib/libc]$ make
Warning: Object directory not changed from original
/usr/home/somehow/bsd_src/lib/libc
cc -O2 -pipe -I/usr/home/somehow/bsd_src/lib/libc/include -
I/usr/home/somhhow/bsd_src/lib/libc/../../include -
I/usr/home/somehow/bsd_src/lib/libc/amd64 -DNLS -D__DBINTERFACE_PRIVATE -
I/usr/home/somehow/bsd_src/lib/libc/../../contrib/gdtoa -DINET6 -
I/usr/home/somehow/bsd_src/lib/libc -
I/usr/home/somehow/bsd_src/lib/libc/resolv -D_ACL_PRIVATE -DPOSIX_MISTAKE -
I/usr/home/somehow/bsd_src/lib/libc/locale -DBROKEN_DES -DPORTMAP -
DDES_BUILTIN -I/usr/home/somehow/bsd_src/lib/libc/rpc -DYP -DNS_CACHING -
DSYMBOL_VERSIONING -std=gnu99 -fstack-protector -Wsystem-headers -Werror -
Wall
-Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c
/usr/home/somehow/bsd_src/lib/libc/stdio/printf.c
building static c library
S*A
发帖数: 7142
2
The kernel is pretty much against using ifdef inside
the C file. Much prefer move the ifdef to some header file.
-D vs -I there is not order requirement.
Back to your question, I don't know a easy way other
than follow the source code.

【在 s*****w 的大作中提到】
: for the following, why some -D are in front of some -I ?
: does that mean these defines are only for the include path following it ?
: [somehow@bsd ~/bsd_src/lib/libc]$ make
: Warning: Object directory not changed from original
: /usr/home/somehow/bsd_src/lib/libc
: cc -O2 -pipe -I/usr/home/somehow/bsd_src/lib/libc/include -
: I/usr/home/somhhow/bsd_src/lib/libc/../../include -
: I/usr/home/somehow/bsd_src/lib/libc/amd64 -DNLS -D__DBINTERFACE_PRIVATE -
: I/usr/home/somehow/bsd_src/lib/libc/../../contrib/gdtoa -DINET6 -
: I/usr/home/somehow/bsd_src/lib/libc -

1 (共1页)
进入Linux版参与讨论
相关主题
如何修改文件名慢机器是不是用 linux 2.4 会快一点,hehe
弱问如何控制外接显示器鼠标进出的方向?貌似android不是全开源的。
是主板要坏了吗?关于signal handler
靠,910升级后竟然不能用无密码ssh了还是关于用GPL code的问题
用free查到的memory里面的"cache"是做什么用的?大家帮我看看如何设计OS profiling/tracing (转载)
free64位的ubuntu下跑32位的matlab会有问题妈?
为啥 inode-cache 的内存算在 used 里面,不算在 cached 里面呢?mmap question
Linux memory leak even without our application running为啥linux各个社区不能合力开发一款好一点的Linux呢
相关话题的讨论汇总
话题: libc话题: bsd话题: lib话题: src话题: usr