C和Pascal得比较(非具体语法方面)
2011-08-13 09:44
141 查看
The computer programming languages C and Pascal have
similar times of origin, influences, and purposes. Both were used to design (and compile) their own compilers early in their lifetimes.
Both C and Pascal are old programming languages: The original Pascal definition appeared in 1969 and a first compiler in 1970. The first version of C appeared in 1972.
Both are descendants of the ALGOL language
series. Algol introduced structured programming,
where programs are constructed of single entry and single exit constructs such as if, while, for and case.
Pascal stems directly from Algol-W,
while it shared some new ideas withAlgol 68.
The C language is more indirectly related to Algol, originally through B, BCPL,
and CPL,
and later through Algol 68 (for example in case of struct and union)
and also Pascal (for example in case of enumerations, const, typedef and
booleans). Some Pascal dialects also incorporated characteristics from C.
What is documented here is the Pascal of Niklaus Wirth, as standardized as ISO 7185 in 1982. The C documented is the language of Brian W. Kernighan and Dennis M. Ritchie, as standardized in 1989. The reason is that these versions
both represent the mature versions of the language, and also because they are the closest in time. C99 (the later C standard) features and features of new dialects of Pascal are not included in the comparison.
similar times of origin, influences, and purposes. Both were used to design (and compile) their own compilers early in their lifetimes.
Both C and Pascal are old programming languages: The original Pascal definition appeared in 1969 and a first compiler in 1970. The first version of C appeared in 1972.
Both are descendants of the ALGOL language
series. Algol introduced structured programming,
where programs are constructed of single entry and single exit constructs such as if, while, for and case.
Pascal stems directly from Algol-W,
while it shared some new ideas withAlgol 68.
The C language is more indirectly related to Algol, originally through B, BCPL,
and CPL,
and later through Algol 68 (for example in case of struct and union)
and also Pascal (for example in case of enumerations, const, typedef and
booleans). Some Pascal dialects also incorporated characteristics from C.
What is documented here is the Pascal of Niklaus Wirth, as standardized as ISO 7185 in 1982. The C documented is the language of Brian W. Kernighan and Dennis M. Ritchie, as standardized in 1989. The reason is that these versions
both represent the mature versions of the language, and also because they are the closest in time. C99 (the later C standard) features and features of new dialects of Pascal are not included in the comparison.
相关文章推荐
- 为何 Go 的声明语法有点怪?(语法比较)
- VB.NET and C# 语法比较手册
- Java_语法基础_谨慎包装类型的大小比较
- C#语法相比其它语言比较独特的地方(二)
- 整理的比较全的一句话后门代码(方面大家查找后门)
- MongoDB语法与现有关系型数据库SQL语法比较
- [引用] 各种工具之正则表达式语法比较 (转载)
- python语法32[global与nonlocal比较]
- C#/VB.NET语法的比较(转)
- 这哥们讲了比较多的高通方面开发遇到的问题
- sql语法:inner join on, left join on, right join on具体用法
- shell 比较语法
- 四个方面比较CPU卡加密系统与M1加密系统
- VB.Net与C# 的语法比较
- VB.NET and C# 语法比较手册
- cdecl, stdcall, pascal,fastcall 都有什么区别,具体是什么调用约定?
- 比较java和C++的面向对象语法
- sql语法:inner join on, left join on, right join on具体用法
- VB.NET和C#之间的语法不同比较,已经更新到.NET4.0了
- Java和PHP在Web开发方面的比较