Chapter 129 Languages in which operating systems can be written
Chapter 129 Languages in which operating systems can be written
Lin Hong didn't know at the moment that in fact, the Windows operation interface of Apple's system was released before Microsoft's Windows, and Microsoft immediately summoned people to develop it after seeing Apple's Windows operating system.
Later, Apple and Microsoft fought a lawsuit over this matter for many years, but unfortunately, Apple did not win the lawsuit, because Apple was not the first to use the Windows system. The first to develop the Windows operating system was a company called Xerox, which was a great company, guarding Baoshan but did not know how to commercialize it, Apple CEO Steve Jobs was shocked when he saw this system, and then did everything possible to poach multiple technicians from Xerox and obtained the Windows system writing technology.
When Jobs learned the news, he was very annoyed, because he had a pretty good relationship with Bill Gates at that time, and had dealings in many businesses, and Jobs said to Gates: "Bill, you are so unkind, I believe you so much"
As a result, Apple took Microsoft to court.
Faced with Jobs' plagiarism accusations, Bill Gates shrugged his shoulders and said to him: "We have a rich neighbor named Xerox, and when I broke into their house to steal the TV, I found that you had stolen it. ”
After Lin Hong tinkered with himself in private for a while, he began to formally listen to the lecturer Mike's class, but after listening for a while, he found that he couldn't understand it at all, and the content that the other party was talking about now was already a relatively backward part of the C language.
Therefore, Lin Hong wisely chose to study by himself, which is his consistent way of learning.
The textbook in my hand is all in English, and according to the literal meaning, the name of the book is "C Language Programming".
Lin Hong already has the programming foundation of basic and assembly, and knows in his heart that this is another programming language.
He begins with the preface, which describes the origins of the language, the author of the invention, and its development.
After reading it, Lin Hong realized that the programming language he was about to learn was a very powerful language, which had the characteristics of both high-level language and assembly language.
In fact, C is based on B, which was the first UNIX operating system to be written. That is, C is a programming language that can be used to write operating systems. This point is not comparable to any b. Just seeing this, Lin Hong made up his mind that he must learn this language well.
As soon as he saw the idea of writing an operating system, he couldn't help but think of lus.
"I don't know what programming language he uses to write the operating system......
Putting aside the distracting thoughts in his mind, Lin Hong began to concentrate on reading the textbook in his hand.
This textbook is very systematic, and it is more detailed than the basic introduction in the Red Book he has read before.
The author gives a "hello_wold!" at the beginning of the book. , so that Lin Hong had a general impression of it from the beginning.
Then, starting from the initial basic syntax variables, the narrative will be easy to understand, wonderful, and at the same time, there are many example codes for reference, Lin Hong quickly immersed in it.
While Lin Hong was reading alone, Arthur had been observing him from behind him, his eyes flickering thoughtfully.
Soon, Mike finished the basic knowledge of this lesson, and then asked everyone to get on the machine and start to operate it themselves, saying that if there is something they don't understand, they can raise their hands to ask at any time.
Since Lin Hong is a new student, Mike pays more attention to him, and he has observed Lin Hong doing his own things in class just now, of course, he doesn't have any opinion on this, after all, this is their freedom, if the students don't listen to him, it is that the course he talks about is too boring to attract the attention of the students.
If the student feels that the teacher's lecture is not helpful to him, he can choose not to listen, or even worse, he can also apply to the school to change the teacher, if there are more students who apply, and the school also thinks that it is necessary, Mike may really face the risk of being laid off.
"Hi, nice to meet you, I'm Mike, what's your name?" Mike walked to Lin Hong's side, and saw that he was concentrating on reading, so he couldn't help but nod slightly, students who like to study are more popular with teachers wherever they are.
Lin Hong took his eyes off the book, turned his head to look at the bald man, and said, "I'm also very happy to meet you, I'm Stone * Lin." ”
"Stone, you're coming to class for the first time, right?".
Lin Hong nodded: "Yes"
"Where are you from? Looks Asian? Japan? ”
"No, it's not." Lin Hong hurriedly shook his head, "I am Chinese, from Beijing, and I am an exchange student. ”
"Oh, really? You're an exchange student from Beijing," Mike was amazed, there were some Chinese students here, but many of them were Chinese-Americans, and there were very few students who actually came from Beijing.
Seeing that Lin Hong didn't speak again, he just looked at him with a puzzled expression, probably worried that Lin Hong would misunderstand him, he hurriedly said:
"I'm sorry, I was just a little surprised, nothing else. I want to say, do you need any help? ”。
"Help?" Lin Hong hesitated for a moment, and really asked a question: "Teacher, I want to ask, where is the compiler of the C language?" ”
"Mike, just call me Mike." Mike corrected, and then he asked, "Have you ever been exposed to programming languages before?" ”。
The reason why he asked this was because Lin Hong's question was more critical, and if he was a beginner, he had no concept of such a thing as a compiler.
The English word for compilation is "pile", which means "to collect, compile", and later translated into Chinese according to the context and meaning, which is "compilation", which means "collection" and "translation".
High-level languages are all about making it easier for programmers, improving readability, and making programming easier, but for computers, high-level languages are like a foreign language, just "speak" to them, and they don't understand what you're talking about.
Therefore, it is necessary to use a "translator" to translate high-level languages into machine code that computers can understand, and the role of the compiler is that it is this intermediary who can understand both the "foreign language" of high-level languages and the "indigenous language" of computers.
Of course, there are actually two different types of translation, one is "simultaneous interpretation", that is, when you hear a "foreign language", the translation is translated smoothly, and you listen and speak at the same time, this type of language is called "interpretive language".
The other type of translation is to listen to you in its entirety, then translate it all into a translated manuscript, and then throw it to the computer for him to execute. In this process, the translator may also organize the translation according to the habits of the "indigenous" computer, so that it is more coherent and free of grammatical errors, so that the "indigenous" can better perform these tasks. Such a language is a true "compiled language".
In fact, the "translation" of the Basic language belongs to the former, while the "translation" of the C language is the latter, but at present, Lin Hong does not understand this layer of truth, thinking that the translation process of these two languages is similar.
Facing Mike's question, Lin Hong nodded and said, "Yes, I have learned basic." ”
"Oh, that's great, if that's the case, then you should be able to learn C very well, although they are two different languages, but in terms of programming ideas, a lot of things are in common." Mike said with a smile.
"Programming ideas?" Lin Hong is very unfamiliar with this term.
Mike thought that Lin Hong didn't hear clearly, after all, for foreign students, many have this language barrier, Lin Hong is one of the easiest foreign students he has ever seen, so he immediately slowed down his speech speed and repeated the word.
"What is Programming Ideas?" Lin Hong asked.
Mike heard his question, thought for a moment, and then said in what he thought was the most understandable way:
"It's a big topic, and it's very broad. To put it simply, this is like the way we think about problems, and programming ideas are the way we think about using computer programming to solve practical problems. ”
Lin Hong nodded as if he didn't understand.
Then, after a few more conversations, Mike started the C compiler from the computer, and then gave him a general explanation of the basic operations of the compiler, such as saving, modifying, executing compilation, and running programs, and these operations have shortcut keys to correspond, which can greatly improve the speed and efficiency of the operation.
In addition, Lin Hong asked another question, and he found that this Mac machine also has a small oval peripheral placed on the right, connected to the chassis, and, this thing is a little different from the thing he received from the family, not two buttons on it, but only one button.
Mike smiled and explained it to him in detail, saying that this thing is called a "mouse", which the Apple-II did not come with at the beginning, and later became standard. Moreover, the mouse of the Mac and the mouse of the PC are different, the mouse of the apple has only one button, while the other computers have two.
At this time, another student shouted Mike's name, and he left.
Although this Mike figure looks difficult for men to approach, it is very friendly and enthusiastic, and Lin Hong can see that he gets along well with the other students, and they play American jokes with each other, as if they are equal friends.
Because Lin Hong just arrived here, he always can't help but compare these things with the situation in China, although he has only been in S for a short time, but he already has a basic understanding of the teaching situation in S (the latest chapter of Seeking Demons). He found that there are very big differences between China and the United States in many aspects.
Of course, he can't tell what is good and what is unscientific.
Lin Hong seems to have returned to the first time he learned the basic language, he began to type in the example code in the textbook character by character, and then compiled and run.
"hello_world!" soon appeared on the monitor. strings.
An important first step has been taken, looking at the results on the monitor, Lin Hong smiled slightly and continued to read other content.
Variables, Data and Operators, Programming Structures, Loops, Pointers, Arrays......
Lin Hong found that C language is very different from basic, and has many functions that basic does not have, some of which are closer to assembly language, involving some operations on memory and underlying interfaces. Lin Hong was completely attracted by these contents, and quickly absorbed the water in them like a sponge.
Just as he was fascinated, he suddenly heard a "beep" sound ringing in his ears, Lin Hong was very familiar with this sound, he knew that it was the sound of the computer's built-in horn.
Lin Hong subconsciously glanced up at the monitor, but was very shocked to find that a black box appeared in the center of the monitor at some point, and in this black box, there was a line of green text, and it was this line of text that shocked him
"Stone, if_you_like I can teach you if you like computers)"
Chapter 129 Languages in which operating systems can be written
Chapter 129 can be written in the language of the operating system, go to (Holy King txt download) to read the novel