本文介绍了C真的那么小吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我已经阅读了几个问题,答案通常是答案 ''C一无所知这里有不同的东西]。'' 所以,如果C知道的有点像有些人说的那样,有什么好处,我 意味着其他语言知道更多或者C是否知道几乎没有什么好处(我能想到的是C是大多数可用平台上定义的最大公约数 )? 当我在阅读 硬盘驱动器的序列号时,我想到了这个问题。 (消息ID:bh************@ID-191020.news.uni-berlin.de)。 因为我经常读''Unix是用C语写的''我问自己,如果一个操作系统如何对C语言一无所知,可以用C语言编写。 请保持最新的水平可能所以我能理解或 告诉我等待''直到我学到更多:) thx Martin - http://wiki.mnemonisch.net 解决方案 问题在于有限 语言中的一组功能。用户可以增加该功能,但是在这个新闻组中不会讨论。 Unix操作系统是用C语言编写的,带有一大堆平台特定代码的。这个代码是 平台特定的不会在这里讨论。 你编写一个使用 $的程序没有错b $ b平台扩展读取序列号或其他硬盘 信息。由于问题不在C语言的范围内, 这里不讨论。 还要注意,如果问题是不在 标准C语言的范围内,它可能不存在于所有平台上。 - Thomas Matthews 常见问题: http:/ /www.eskimo.com/~scs/c-faq/top.html alt.comp.lang.learn.c-c ++ faq: http://www.raos.demon.uk/acllc-c++/faq。 html 我希望我的解释有所帮助。 -Mike 有C和那里有/ C /。 标准C(comp.lang.c中讨论的主题)被定义为 ,无论在何处使用它都提供相同的设施。这些最低价格的b $ b设施足以构建相当全面的应用程序,但 不一定是操作系统或设备驱动程序。 但是,用一点额外的胶水 (以外部附加形式 库的形式),您可以扩展C,使其/可以/用于编写操作 系统和设备驱动程序。对于操作系统,胶水通常是由一组汇编语言模块组成,这些模块为硬件提供了一个 一致的界面。对于设备驱动程序,胶水 包含库或模块,为 操作系统提供一致的界面。 理论上,使用适当的硬件,应该可以用标准C编写一个 操作系统。实际上,它并不像所有那样简单。 在comp.lang.c中,我们将C讨论为标准C。可用于创建与平台无关的应用程序。另一个C,即 的C需要特定于平台的扩展,留给其他小组讨论。 - Lew Pitcher,IT顾问,应用程序架构 企业技术解决方案,道明银行金融集团 (此处表达的意见是我自己的,不是我的雇主'' s) Hi,I''ve read several questions and often the answer was''C knows nothing about [lots of different stuff here].''So if C knows that little as some people say, what are the benefits, Imean do other languages know more or is it a benefit that C knows nearlynothing (what I can think about is that C is the largest common divisordefined on most available platforms)?This question came to my mind when I was reading "Serial Number of theHard Drive" (Message ID: bh************@ID-191020.news.uni-berlin.de).Because I often read ''Unix is written in C'' I''m asking myself how an OScan be written in C if it knows nothing about anything.And please stay on the newbiest level possible so I can understand that orjust tell me to wait ''till I learned more :)thxMartin-- http://wiki.mnemonisch.net 解决方案The issue is that there is a finite set of functionality in thelanguage. Users are allowed to augment that functionality, but itwon''t be discussed in this newsgroup.The Unix operating system was written using the C language, alongwith a whole bunch of platform specific code. The code that isplatform specific won''t be discussed here.There is nothing wrong with you writing a program that usesplatform extensions to read the serial number or other harddiskinformation. Since the issue is not in the domain of the C language,it won''t be discussed here.Also be aware that if the issue is not in the domain of thestandard C language, it may not exist on all platforms.--Thomas MatthewsFaq: http://www.eskimo.com/~scs/c-faq/top.htmlalt.comp.lang.learn.c-c++ faq: http://www.raos.demon.uk/acllc-c++/faq.htmlI hope my explanation helped.-MikeThere''s C and there''s /C/.Standard C (the topic of discussion here in comp.lang.c) is defined suchthat it offers the same facilities no matter where it is used. These minimumfacilities are enough to build fairly comprehensive applications, althoughnot necessarily operating systems or device drivers.However, with a little additional "glue" (in the form of external add-onlibraries), you can extend C such that it /can/ be used to write operatingsystems and device drivers. For operating systems, the glue commonlyconsists of a handfull of Assembly language modules that provide aconsistant interface to the hardware. For device drivers, the "glue"consists of libraries or modules that provide a consistant interface to theoperating system.In theory, with the proper hardware, it should be possible to write anoperating system with Standard C. In practice, it''s not as simple as all that.In comp.lang.c, we discuss the C as in "Standard C" that can be used tocreate applications that are platform-independant. The other C, the C thatrequires platform-specific extensions, is left to other groups to discuss.--Lew Pitcher, IT Consultant, Application ArchitectureEnterprise Technology Solutions, TD Bank Financial Group(Opinions expressed here are my own, not my employer''s) 这篇关于C真的那么小吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-22 12:14