在Linux中浏览C库 [英] Browsing C library in Linux

查看:104
本文介绍了在Linux中浏览C库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我知道在Linux中浏览C库的源代码是不可能的。但我不记得

如何。总之,我希望看到实现

的标准头文件,例如< string.hetc。


我使用的是Ubuntu。我甚至已经下载了linux-headers。

我只能看到/ usr / src / linux / include / asm-i386中的asm代码。

任何指针/帮助赞赏。

谢谢,

MC

-------------------- ------------------------------

总而言之,我只是另一块砖防火墙。

解决方案

Madhusudhanan Chandrasekaran< mc ** @ cse.buffalo.eduwrote:





我知道在Linux中浏览C库的源代码是不可能的。但我不记得

如何。总之,我希望看到实现

的标准头文件,例如< string.hetc。


我使用的是Ubuntu。我甚至已经下载了linux-headers。

我只能看到/ usr / src / linux / include / asm-i386中的asm代码。

任何指针/帮助赞赏。



这个组中的偏离主题,几乎类似于询问最近的

加油站到达你家的地方。


无论如何,在大多数Ubnutu和Debian派生系统中,你可以自动下载并解压缩源代码(进入你的


< blockquote> CWD)使用

incantions类似于:


apt-get source glibc


(首先你可能需要'apt-get install dpkg-dev`;如果你问一个正确的
组,如果我证明错了,人们可能会更快纠正我。)


glibc遭受大而复杂的困扰,并且几乎无法穿透代码

base。你可能想在这里学习字符串实现,然后将

转换成glibc的优化程序集和C代码:

http://www.openbsd.org/cgi-bin/cvswe...b/libc / string /


Hi,

I know that it is impossible to browse through
the source code of C library in Linux. But I do not remember
how. In short, I would like to see the implementation
of standard header files such as <string.hetc.

I use Ubuntu. I''ve even downloaded the linux-headers.
I can see only asm code in /usr/src/linux/include/asm-i386.
Any pointers/help appreciated.
Thanks,
MC
--------------------------------------------------
All in all I''m just another brick in the FIREWALL.

解决方案

Madhusudhanan Chandrasekaran <mc**@cse.buffalo.eduwrote:

Hi,

I know that it is impossible to browse through
the source code of C library in Linux. But I do not remember
how. In short, I would like to see the implementation
of standard header files such as <string.hetc.

I use Ubuntu. I''ve even downloaded the linux-headers.
I can see only asm code in /usr/src/linux/include/asm-i386.
Any pointers/help appreciated.

This is off-topic in this group, almost akin to asking where the nearest
petrol station is to your home.

In any event, on most Ubnutu and Debian-derived system, you can
automagically download and unpack the source (into your


CWD) using
incantions similar to:


apt-get source glibc

(You may need to `apt-get install dpkg-dev`, first; if you ask in a proper
group people might be quicker to correct me if I prove wrong.)

glibc suffers from a large, complex, and in places nearly impenetrable code
base. You might want to study the string implementation here before diving
into glibc''s optimized assembly and C code:

http://www.openbsd.org/cgi-bin/cvswe...b/libc/string/


这篇关于在Linux中浏览C库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆