Super-brain hacker

Chapter 331 I want to learn

Writing an operating system is a very complicated thing. You must clearly understand every detail of the computer system. After powering on, each hardware is in its original state, storing the data, how the code is executed step by step... and so on.

The programming language mainly used by Lin Hong is the C language. Of course, there will be some places where assembly language needs to be used, such as the code BatLaader that was originally booted.

C language is indeed a very powerful language. Almost most popular operating systems are written by C language or its variants, such as UNIXLINUX or even WINDOWS

In those years, INUS wrote the INUX kernel under the MINIX system, but now, Lin Hong writes the INX kernel under the INUX system.

Since Lin Hong has a lot of experience in system programming, his progress was very fast at the beginning.

First of all, the code writing environment is ready-made, and there is no need to configure it with extra time and energy.

If you want to write an operating system, the programming environment is also somewhat complex. It does not mean that the environment can write application software is enough, but it needs to be specially customized. This step usually takes a considerable amount of energy and time for programmers. Because the system you need to write is likely to be a brand-new system, the existing software and tools may not meet your needs, so you have to implement these tools and software by yourself.

It's like you want to make a machine, but you don't have ready-made tools. You have to invent a lathe to make car accessories.

It can be imagined that it may take a very long time to invent a lathe.

As the saying goes, if you want to cut firewood quickly, you must have a sharp knife, but sharpening the knife also takes time.

And Lin Hong can directly omit this step now. Because his development environment can be completely consistent with the INUX development environment, because the programming language used is the same.

Secondly, bootloaders such as BaatLaader are almost ready-made. As long as you modify a small amount of code, you can directly reuse the original.

So, he wrote the first routine "HMMaLwn" in a short time.

After restarting, he booted into his newly written operating system display and began to print the words "HMlla" and "Lnx" intermittently.

Just like the first multi-process program written by INUS, he also implemented two threads, which run in the CPU at the same time and share the CPU's time slice.

Although such a result had already been expected, Lin Hong still looked at the effect.

This is something that programmers often do. Although the result of the program execution has been expected for a long time, they will still choose to enter it in person, then run it and then watch the computer to execute it again. In this way, you can have a perceptual cognition, and it is also a potential incentive for yourself. Watching the program you wrote yourself gradually take shape, let the computer show various effects, in which the pride is beyond words.

Lin Hong, who is familiar with psychology, naturally knows that this is actually a human control instinct, especially when boys have this desire to control since childhood. They want to play remote-controlled cars and play games, all of which is the same reason.

The time to write code passed very quickly. The details were debugged one by one, and unconsciously the sky lit up.

Starting from today, the college life of freshmen will be officially launched.

The first thing is to hold a class meeting. Select the class cadres and listen to the counselor to introduce the specific situation. People in the same class will also meet each other and get to know each other.

Lin Hong saved everything and closed the notebook.

It's time for morning exercise. He looked at the other people who were still sleeping soundly, and didn't wake them up. He went straight to the bathroom to wash up and went out at the school playground.

University, first of all, the area must be large.

After so many years of development, the area of Shuimu University has increased from 450 mu at the beginning of the school to more than ten times now, reaching more than 5,000 mu, and this number is still increasing.

In China, a university is a city. It is usually isolated from the outside world. It is strictly forbidden for unrelated people outside the school to enter the school. This is indeed a kind of protection for students, but it also causes a greenhouse effect. After students go out, they often have some social environment for a long time. Very uncomfortable.

Lin Hong came to the playground next to the gymnasium. The 400-meter plastic runway covered the whole football field with artificial turf.

It's a little after six o'clock now. It's just before dawn, but there are already many people doing morning exercises on the playground.

There are students in the Department of Physical Education who are conducting routine training, there are also [luck] enthusiasts from other departments running on the track, and there are even several people with football on the football field in targeted practice.

Lin Hong did not start practicing immediately, but decided to run around the playground first to see how far the environment had not run, but someone shouted behind him, "Big, wait for me."

Lin Hong turned his head and looked, and Zhang Da was running in the direction of the dormitory.

"You actually got up. Can't you drink too much?" Lin Hong was a little surprised.

"It's okay for me to drink beer, but my stomach is swollen. When I got up to go to the bathroom, I happened to see that you had just gone out. Boss, I've decided. I want to learn kung fu. This has always been my dream. Even if I can't learn it, I have to learn it!" Zhang Da said solemnly.

Lin Hong was not surprised by this, but nodded indifferently: "Well, okay. Say it while running, and I'll give you a general introduction.

With that, he began to run around jogging to warm up, and Zhang Da quickly followed.

"The boxing I practiced is a boxing." Lin Hong said as he ran, "This is an internal boxing that focuses on actual combat."

"Shampt boxing? I've heard of it before, and it's also called Xinyiquan.

Lin Hong nodded: "Yes, but now it has been divided into several genres, and Xinyiquan is currently developing well overseas. My teacher is Sun Jingtai from Lingnan. But what I'm going to teach you now is Xingyi..."

Lin Hong then told him the context of Xingyi Dao, as well as the purpose and goal.

"Your eldest brother actually opened a sect and developed the martial arts school so well abroad!"

After listening to the development of Xingyi Taoist Hall, Zhang Da couldn't help but shine with his eyes and admired Zhang Cheng. At the same time, he also recognizes the development concept of Xingyidao very much. At present, domestic martial arts are indeed rare. Ordinary people can't touch it at all. They only hear its voice but not its shape. If it goes on like this, it is strange that it can develop healthily.

On the contrary, [Sun] Ben's judo and South Korea's taekwondo have slowly become popular in big cities recently.

"Although Xingyi Dao originated from Xingyiquan, there are still many differences. This, like Jeet Kune Do, originates from Yongchun, but according to the characteristics of the development of the times, it has undergone great changes. Although this change is not possible to judge whether it is progress or regression for the time being, it is at least in line with the current situation.

"Well, I'm more optimistic about Xingyidao. That's the way it is. If you are poor, you will think about change, if you change, you will be general. If you stick to the rules all the time and hold on to the previous things without making any changes, sooner or later you will fall into decline.

Being admitted to Shuimu University, Zhang Da naturally has his own uniqueness, and his IQ is only high and not low.

"Hingyidao has decided to move its headquarters back to China, and then it will begin to establish a branch across the country. I plan to set up a Xingyidao community on Shuimu campus, but I don't have much time. If you are interested, please help me manage it.

As soon as Zhang Da heard this, he became interested: "To run a club? Good idea! It's just that I've just come into contact with Xingyidao. Can I do it?

"Ha ha, it's okay. It's just some basic skills to teach others at the beginning. If I encounter any trouble, I'll come forward to deal with it. However, since we have to do it, we must do it well. I don't want this community to be just a decoration.

"I'll do my business, don't worry! Haha!"

Zhang Da is still very confident in himself. From childhood to his up, as long as he is willing to do one thing seriously, there are few unsuccessful,

"Big boss, don't talk so much. Hurry up and teach me how to do it!"

When Lin Hong and Zhang Dachen finished their exercise, they went to the canteen to buy breakfast together.

After returning to the dormitory, Wu Dong also got up and washed the clothes that he didn't have time to wash yesterday. By the way, he also washed the clothes that Zhang Da changed yesterday.

Zhang Da was moved to tears when he saw this. He hugged Wu Dong and said that he was too virtuous to marry him.

Under their fight, they accidentally knocked down a wooden stool. With a bang, Li Qi, who was still sleeping, suddenly bounced up and asked, "What's wrong, what's wrong?"

Zhang Da smiled and said, "It's okay! It's almost time for a meeting. Get up quickly.

When we had breakfast together, Wu Dong said to Lin Hong, "Big boss, I want to ask you a favor."

Seeing that he was so awkward, Zhang Da couldn't help saying, "If you have something to do, just say it directly. Why are you polite to the boss?"

Lin Hong also said, "The second brother is right. They are all brothers. If you have something to say, you can say it directly. It's a little too awkward to pinch like this. Do you want to ask Zheng Jia out for a reunion? No problem, I'll make an appointment for you.

As soon as Wu Dong heard Lin Hong's words, his face suddenly turned red and quickly said, "No, no, there is no such thing!"

"Oh~~~" Zhang Da shouted strangely when he saw this.

Li Qi also shouted: "Oh~~~"

The two of them still don't know that Wu Dong is interested in Zheng Jia. At this moment, when they see Wu Dong's appearance, they don't know what's going on.

"Don't think about it..." Wu Dong quickly explained.

"No need to explain, explanation is to cover up!" Zhang Da interrupted him, "Lao San, I said you are a big man, or a man from Shandong. How can you be as unpleasant as a big girl? What's wrong with liking girls? Isn't this a normal thing?"

When Lin Hong saw that the blue veins on Wu Dong's forehead were rushed out, he quickly said, "Okay, okay. We're just kidding you. Tell me, what exactly is it?"

This time, Wu Dong said his idea readily: "I want to learn computer technology from you."