volcano027 发表于 2003-6-15 17:08:36

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

我是编译单一内核的,第一次在rh9下编译的内核竟然有2.0M,
第二次我又去掉了一些东西,重新编译后还有1.9M
我在debian30r1下编译的最不也有1.7M


怎么都这么大啊???
虽然大了点,但程序打开和开机速度快多了

jjww 发表于 2003-6-15 19:43:44

我想是由于developer版本,有很多调试信息导致的吧。

Dragonfly 发表于 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.

Dragonfly 发表于 2003-6-16 00:16:36

i tried just now. deselect all kernel hack options can reduce only 100k.

jjww 发表于 2003-6-16 09:27:01

你认为是什么导致内核比较大呢?象FreeBSD,如果添加新功能,相应的功能块有自己的debug选项,不知道linux的debug选项是不是集中在hack options里的。

Dragonfly 发表于 2003-6-16 09:32:35

most are in kernel hack options. but for debug print out, are in individual modules.

jjww 发表于 2003-6-16 09:39:24

是呀,我想把这些debug print去掉后,应该会小很多的...

Dragonfly 发表于 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.

jjww 发表于 2003-6-16 09:43:25

那你说和gcc的优化参数有没有关系呀?

Dragonfly 发表于 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
页: [1]
查看完整版本: 大家编译的2.5.70的内核有多大???