高级操作系统高级操作系统 (29).pdf





《高级操作系统高级操作系统 (29).pdf》由会员分享,可在线阅读,更多相关《高级操作系统高级操作系统 (29).pdf(36页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、第 6 讲:The Programming Languages of OS第二节:The Evolution of C Programming Practices:A Study of the Unix Operating System 19732015IntroductionHistory of C1969:B created,based on BCPL,to replace PDP-7 assembleras the system programming language for Unix,remained atypeless language like BCPL1971:NB(”new
2、B”)created when porting B to PDP-11,types(int,char,arrays and pointers),array-to-pointer conversion,compilation to machine code1972:Language renamed to C,structs,preprocessor,portableI/O1973:Unix re-written in C1978:The C Programming Language,1st editionThe Development of the C Language,Dennis M.Rit
3、chie,1993.IntroductionWhy was C be used to develop UNIX?Thompson decided that Unix possibly needed a systemprogramming language,he created a language B(from BCPL).B can be thought of as C without types;BCPL,B,and C all fit firmly in the traditional proceduralfamily typified by Fortran and Algol 60.T
4、hey are close to themachine abstractions.BCPL,B have a single data type,the word,or cell,afixed-length bit pattern.Memory in these languages consistsof a linear array of such cells.B generated threaded code.The C extended the B by adding types and also rewrote itscompiler to generate PDP-11 machine
5、instructions.The C compiler is capable of producing programs fast andsmall enough to compete with assembly language.This DEC VAX 11/780 machine became much more popular.IntroductionWhy was C be used to develop UNIX?C was a traditional procedural family languageSPEED CLOSE TO ASSEMBLYCLOSE TO MACHINE
6、 ABSTRACTIONTYPE SAFETYPORTABILITYSIMPLE/SMALL LANG&BIG LIBRARY.IntroductionWhence Success?The success of Unix itself was the most important factorRemains a simple and small languageAt the same time the language is sufficiently abstracted frommachine details that program portability can be achievedC
7、 and its central library support always remained in touchwith a real environmentThe actual C language as seen by millions of users using manydifferent compilers has remained remarkably stable andunified compared to those of similarly widespreadcurrency,for example Pascal and Fortran.A Study of the U
8、nix Operating System 19732015objectiveThe objective of this work is to study thelong term evo-lution of C programming inthe context of the Unix oper-ating systemdevelopment.Formulate seven hypotheses associatedwith the long term evolution of Cprogramming in the Unix operatingsystem.A Study of the Un
9、ix Operating System 19732015Seven hypotheses associated with the long term evolution of Cprogramming in the Unix operating systemProgramming practices reflect technology affordancesModularity increases with code sizeNew language features are increasingly used to saturationpointProgrammers trust the
10、compiler for register allocationCode formatting practices converge to a common standardSoftware complexity evolution follows self correction feedbackmechanismsCode readability increases.A Study of the Unix Operating System 19732015Timeline of indicative analyzed revisions and milestones in(from top
11、to bottom):C languageevolution,developer interfaces,programming guidelines,processing capacity,collaborationmechanisms,and tools.A Study of the Unix Operating System 19732015.A Study of the Unix Operating System 19732015H1:Programming practices reflect technology affordancesHalf Century of Unix:Hist
12、ory,Preservation,and Lessons Learned,Diomidis Spinellis,keynote of OW2 Consortium,2017.A Study of the Unix Operating System 19732015H1:Programming practices reflect technology affordancesHalf Century of Unix:History,Preservation,and Lessons Learned,Diomidis Spinellis,keynote of OW2 Consortium,2017.A
13、 Study of the Unix Operating System 19732015H1:Programming practices reflect technology affordancesHalf Century of Unix:History,Preservation,and Lessons Learned,Diomidis Spinellis,keynote of OW2 Consortium,2017.A Study of the Unix Operating System 19732015H1:Programming practices reflect technology
14、affordancesHalf Century of Unix:History,Preservation,and Lessons Learned,Diomidis Spinellis,keynote of OW2 Consortium,2017.A Study of the Unix Operating System 19732015H1:Programming practices reflect technology affordancesHalf Century of Unix:History,Preservation,and Lessons Learned,Diomidis Spinel
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 高级操作系统高级操作系统 29 高级 操作系统 29

限制150内