Chapter 381: The Next Mission

readx;

Wu Dong Although their progress is relatively slow, but at least the early framework has been set up, the next work is to implement the instruction set, which is basically a manual work, as long as you understand the principle, it is in accordance with the technical manual, these instructions are implemented one by one, very complicated, the same instruction, the operand number is different, the corresponding machine code is also different. Pen ~ fun ~ pavilion www.biquge.info

So far, Wu Dong has only realized several major directives.

Lin Hong looked at the code they wrote for a while, and pointed out a few functions that could be implemented more flexibly on the spot, which suddenly made a few pieces of code that they thought very difficult simpler and reduced the amount of code a lot.

This made Wu Dong and Tang Huaxin both very impressed.

Wu Dong The way they use is completely the most primitive, step by step, which is the most common thinking for beginners, although the efficiency is relatively low, but it is simple and effective, and the thinking is clear.

However, the method used by Lin Hong is highly optimized, for example, for the conditional judgment mechanism, let Wu Dong and them realize it, and it may take at least three or four sentences to judge separately, while Lin Hong can use one sentence to do it. And this simple statement, Wu Dong and they seem, they have to think for a long time to figure out the mechanism.

Overall, their code is functionally fine, but some of the features are a bit inefficient when they are implemented, because this is a software simulation, and even if it is finally run, the speed will be affected.

"Well written!" Lin Hong encouraged, "At this point, I believe you have enough understanding of the structure of the CPU and the underlying principles of the computer. ”

Wu Dongshen thought so: "Yes, in order to write these codes, I will study the content that I will only start learning in the second half of next year in advance, and I have also read the book on the principles of computer composition several times." ”

Wu Dong is still a freshman. According to the curriculum arranged by the school, it is still in the most basic stage of popularizing cultural knowledge. These contents. At least sophomores, or even juniors, will be involved.

"It's a really good project."

At this time, Tang Huaxin also interjected: "I used to study "Principles of Computer Composition" and "Principles of Microcomputers" by myself, and I read the textbooks several times, but I always seemed to understand it. And a lot of the details are not understood. After getting in touch with this project. Only then did I feel a sense of enlightenment. ”

This project is simply an effective practice of those theoretical courses in the school, and the school curriculum is too theoretical. For most people. Basically, after the exam, I will completely return it to the teacher, and I will not leave any memory. And those who are really interested are no better, because they don't know why and what is the use of learning these things. It doesn't usually apply at all.

A lot of the members of the group, after being exposed to this project. Only then did I have a sense of epiphany, and I realized that what I had learned before turned out to be like this.

Lin Hong helped them sort out the code of the project, optimize the structure of the entire framework, and then write the next content to be written - the compiler steps.

In addition, he also made a list of books to refer to when writing this thing, so that they can read these books to learn when writing code, and reduce the detours they take.

Lin Hongdao: "As long as the compiler is implemented, then you can run specific programs in your own virtual machine." In this way, the written virtual machine can be considered to be really useful. ”

"Effect?" Wu Dong was a little curious, "What is the purpose of this thing after it is written?" ”

He had always treated the project as a pure learning project, and never thought about what he was going to do with it once he implemented the features.

"Virtual machines are still very versatile." Lin Hong explained, "If the technology is powerful enough, it is natural to run the operating system directly on it like Microsoft, IBM, and Intel have written their own virtual machines." ”

"Running your own operating system?" Wu Dong couldn't help but be a little stunned when he heard this, "When does this have to be made?" ”

"Of course it's not realistic to rely on your own strength, didn't you form a group? In school, there should be a lot of people who want to learn this knowledge, and if it is well organized, it is possible to make a difference. Just like Linux, it uses the power of open source to gather the best programmers and hackers from all over the world to contribute code to it. ”

"This ......" Wu Dong has no confidence in this.

Tang Huaxin, who was next to him, nodded slightly.

"You're right, this program can actually be promoted like other universities, making it a learning program and continuing to improve its functionality."

Lin Hong saw that Wu Dong had no confidence, and said with a smile: "Actually, it doesn't have to become such a complex system. My suggestion is to implement the main features first, and then toss around a little bit more. In addition to installing the operating system, debugging the functions of the CPU, the virtual machine can be used to run the program, and most importantly, the environment in which the program runs. Since it is virtual, the programs running inside actually do not affect the computer system outside. This does a lot of things, such as researching viruses and anti-virus technologies, running programs across platforms, and so on. ”

Of course, this is a matter for the future, and their main job at the moment is to implement all of this instruction set first, and then implement the compiler, and implement the program code in it.

Lin Hong encouraged them and said that he would help solve some difficult problems that they could not solve at any time.

The emergence of the virtual machine project team gave Lin Hong some inspiration.

He was thinking about how to tap high-IQ students across the country, and perhaps this kind of project team approach is a feasible solution.

Lin Hong took a general look at the code they wrote, and the code styles in it were different, and it was obvious that many people participated in writing it.

However, there are a few people whose code style looks relatively good, and Lin Hong can roughly infer the level of the other party from the implementation of these codes.

If more technical programs like this can be implemented on campus, some high-IQ students can gather.

This is because most students with higher IQs like to study science, and when they arrive at university, they will quickly find that the ideas of computers are very much in line with their rational way of thinking, and they are usually attracted to this technology.

On the way back, Lin Hong conceived such a plan in his mind, and when the time was ripe, he started to carry it out.

When they returned to the courtyard, Xia and Pan Pan, who had been out all day, also returned.

"Brother Hong, you're finally back." As soon as Pan Pan saw Lin Hong, he immediately said, "Zhongguancun is really amazing, a small street, there are so many heavyweight companies!" It seems that one of the top IT companies in China is here. ”

Lin Hong: "Zhongguancun is known as China's Silicon Valley, but it is not just a blow. ”

"Summer and I carefully investigated the price of hardware here, but it was really cheap, and the selling price was even close to our purchase price."

"It's not surprising." Lin Hong has long understood this, "In fact, it can be regarded as wholesale here, but most of them are still wide goods, and the south is the center of computer accessories." However, the companies here are uneven, and the price they quote you may not be real. ”

Then, Pan Pan told Lin Hong in detail what he had seen and felt.

In Zhongguancun, basically everyone is a computer hardware expert, and everyone knows the performance of these accessories very well, even the students who have just interned in the store are very good.

It was here that he felt the most.

They went to the talent market to take a look, and there are many people who know technology and can program, compared with Lingnan Province, the talent here is really easy to find.

"You're right."

Lin Hong nodded: "After all, this is the capital of China, and most of the best talents gather here, if you are starting a high-tech company, it is indeed easier to recruit people here." That's why I've been planning to open a branch here. ”

"Brother Hong, can this branch be done or not?" Pan Pan asked.

Lin Hong thought for a moment, and then said: "We have to wait for a result for this." Didn't we bring a prototype with us? I'm going to visit that elder of mine tomorrow, and if it happens, then it's definitely necessary to open a branch here, otherwise, let's see again. ”

Lin Hong was still relatively confident in this matter before, but after chatting with Feng Yuanzheng today, he felt that this matter really didn't seem to be so reliable.

Anyway, whether this can be done or not, Linx will definitely continue to develop. If the army doesn't like it, then civilian use. The real-time operating system is also very widely used in the field of industrial control, and it will not be useless.

In the evening, Lin Hong's laboratory.

Although there are more rooms in the courtyard, for convenience, Lin Hong chose his bedroom in the laboratory, anyway, he can't sleep at night, and he needs to work hard for the superbrain system in the brain.

The equipment that Lin Hong made before was here, and it was huge and couldn't be taken away, so when he wasn't here, he focused on Linx during this time.

The version of the Linx kernel he wrote in his notebook was actually more forward-facing than the one in the R&D department of Tricolor Fire Technology, and there were two copies, one for machine operation and the other for superbrain.

After coming here, he began to reconstruct the superbrain "hardware".

The structure of the superbrain CPU has been completed, and what needs to be done now is to establish a structure for receiving and decoding incoming information in the "Sky Eye".