QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 969|回复: 9

大家编译的2.5.70的内核有多大???

[复制链接]
发表于 2003-6-15 17:08:36 | 显示全部楼层 |阅读模式
我是编译单一内核的,第一次在rh9下编译的内核竟然有2.0M,
第二次我又去掉了一些东西,重新编译后还有1.9M
我在debian30r1下编译的最不也有1.7M


怎么都这么大啊???
虽然大了点,但程序打开和开机速度快多了
发表于 2003-6-15 19:43:44 | 显示全部楼层
我想是由于developer版本,有很多调试信息导致的吧。
回复

使用道具 举报

发表于 2003-6-15 23:37:23 | 显示全部楼层
yes, it is a little big. but i am not sure if this is because debug info. i donot think so.
回复

使用道具 举报

发表于 2003-6-16 00:16:36 | 显示全部楼层
i tried just now. deselect all kernel hack options can reduce only 100k.
回复

使用道具 举报

发表于 2003-6-16 09:27:01 | 显示全部楼层
你认为是什么导致内核比较大呢?象FreeBSD,如果添加新功能,相应的功能块有自己的debug选项,不知道linux的debug选项是不是集中在hack options里的。
回复

使用道具 举报

发表于 2003-6-16 09:32:35 | 显示全部楼层
most are in kernel hack options. but for debug print out, are in individual modules.
回复

使用道具 举报

发表于 2003-6-16 09:39:24 | 显示全部楼层
是呀,我想把这些debug print去掉后,应该会小很多的...
回复

使用道具 举报

发表于 2003-6-16 09:41:16 | 显示全部楼层
yes. and i believe these DEBUG switch are off by default. They are only useful when authors debug their code.
回复

使用道具 举报

发表于 2003-6-16 09:43:25 | 显示全部楼层
那你说和gcc的优化参数有没有关系呀?
回复

使用道具 举报

发表于 2003-6-16 09:50:22 | 显示全部楼层
not too much. O2 and O3 will change some. march also changes some. but no much. of course -g is a different story. it can enlarge kernel size 2-3 times
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-9-18 15:45 , Processed in 0.064022 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表