+ -
当前位置:首页 → 问答吧 → AMD64位系统如何优化编译glibc?

AMD64位系统如何优化编译glibc?

时间:2009-05-15

来源:互联网

我想让我的glibc速度更快一些,更精简一些。我需要使用哪些参数?

作者: echo   发布时间: 2009-05-15

Don't do that!

作者: d00m3d   发布时间: 2009-05-16

刚把glibc升级成2.10.1,参考了Fedora的spec

glibc2.10的一些更新:

* New interfaces: preadv, preadv64, pwritev, pwritev64, malloc_info
Implemented by Ulrich Drepper.

* New Linux interfaces: accept4, fallocate, fallocate64.
Implemented by Ulrich Drepper.

* Correct declarations of string function when used in C++ code. This
could lead to compile errors for invalid C++ code.

* XPG7/POSIX 2008 compilation environment. Many GNU-specific functions
are now in POSIX.

* New POSIX 2008 interface: psiginfo
Implemented by Ulrich Drepper.

* New ISO C++1x interfaces: quick_exit, at_quick_exit
Implemented by Ulrich Drepper.

* Support for selecting between multiple function definitions at runtime
using STT_GNU_IFUNC symbols. Implemented by Ulrich Drepper.

* The libcrypt library can now use the hash function implementations in
NSS. Implemented by Ulrich Drepper.

* The malloc implementation can be compiled to be less memory efficient
but higher performing in multi-threaded programs.
Implemented by Ulrich Drepper.

* New locales: nan_TW@latin, ks_IN

* Faster strlen, strchr, strchrnul, strrchr, memchr, and rawmemchr for
x86-64. Implemented by Ulrich Drepper.

* Extended printf hook support. It is possible to use user-defined
types and extend existing format specifiers.
Implemented by Ulrich Drepper.

* Handling for group shadow files has been added.
Implemented by Ulrich Drepper.

作者: newper   发布时间: 2009-05-16

楼上,cvs 发布的 glibc 那来的 2.10.1,稍稍让人满意些的是准备切换到 git 发布。

另,eglibc 已进入 debian sid,您不妨直接上 eglibc-2.10 替换 glibc-2.10,看看效果如何。
http://www.eglibc.org/
http://www.eglibc.org/repository
http://www.eglibc.org/faq

作者: 聚焦深空   发布时间: 2009-05-16

cvs上的确有2.10.1,不过我是从git下的

作者: newper   发布时间: 2009-05-16

引用:
作者: echo
我想让我的glibc速度更快一些,更精简一些。我需要使用哪些参数?
今天看见 SVN book 的 changelog 连同相关的 bug report,说维护者他们看了 Fedora 及 DIY Linux 都为 glibc 优化,於是随之加入了 -O3 及 -pipe 参数,并说为优化的警告经已过时

详见:

http://www.linuxfromscratch.org/lfs/...changelog.html

http://wiki.linuxfromscratch.org/lfs/ticket/2299

引用:
Description

Looking at both Fedora's RPM spec file and DIY-Linux, they both seem to optimize Glibc.

Mabe we could do that for 7.0, and that warning about optmization is obslete.
一反以往常态,晕死!

作者: d00m3d   发布时间: 2009-05-19