LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 482|回复: 1

How to compile a c file

[复制链接]
发表于 2005-3-12 19:41:30 | 显示全部楼层 |阅读模式
I'm sorry to use English.Because my OS can't suppory Chinese.
When a Hello World Programme is compiled,it becomes much bigger.Why?What is wrong?
Who can tell me?
发表于 2005-3-13 19:17:23 | 显示全部楼层
Because there are many debug symbols embedded it the binary.

You may strip your binary to reduce its size.  For example:

gcc hello.c -o hello
strip hello
回复 支持 反对

使用道具 举报

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

本版积分规则

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