Road to SR (C)

One million lines of code can be written in a file inside.

As the book puts it: written in the early program code are playing on punched paper tape, let the computer to read. Let the computer read the tape certainly is continuous, this need not say more. In fact, I did not have written procedures, real pain, I do not know. After that came the assembly language, you can write some code. This time code is written in a text file, and then handed over to a compiler to compile, and then to link consists of a linker, which came out program. The first written compilation of people, probably written by the famous "Hello World" program, that program written in a file on the line. So then it became a habit, we regard the code is written to a file. Early in assembly language, GOTO statement is very, very frequently, a GOTO statement to go to another text file, is neither realistic nor convenient. So we used to, we put all the code written to a file. Still later a high-level language, what ah C, Pascal ah like. Since we have formed a habit, so it is natural to put a program written to a file. No matter how much the program, how many lines of code, written to a file and more convenient way. Until now the language development of more advanced. But programmers habit or die hard, once got the chance, or like the code to a file inside. Well, some people say I am Naturally. En, which of course has substance. Remember when the version 1.0 release of Delphi, the world's burst of applause. Even "does not support double-byte" such a big problem, it does not affect his promotion in the Chinese region. Soon, however, he broke a big BUG! Big BUG it? Delphi 1.0 compiler source code files actually do not support more than 64K! This is a flak Fans who curse. Until I used Delphi 2.0, also ran a camp turn from VB programmers came over and asked me about it. Fortunately, Delphi 2.0 changed this BUG, then it makes my face Shanghao a while scenery.64k file is what concept? 1 line of code probably (average) is 30 bytes, 64k is 2184 lines of source code, if the code style a little better, some more blank lines, it is almost 3000 lines up and down. That is, in the era of Delphi 1 (and subsequent lot of the times), the 3000 lines of code a programmer writes a file, it is quite common thing. If you do not let him write, it will be derided it.

 

Reproduced in: https: //www.cnblogs.com/muailiulan/p/11071227.html

Guess you like

Origin blog.csdn.net/weixin_34248705/article/details/93477891