Chapter 331: I Want to Learn
readx;
Chapter 331: I Want to Learn
Writing an operating system is a very complicated thing, and you must understand every detail of the computer system clearly, after powering on, each hardware is in the initial state, which stores those data, and how the code is executed step by step...... And so on and so forth. Pen @ fun @ pavilion wWw. ļ½ļ½ļ½Uļ½Eć ļ½ļ½ļ½ļ½
Lin Hong's main programming language is C language, of course, there will be some places where assembly language needs to be used, such as the bootloader of the code that was initially bootloaded.
C language is indeed a very powerful language, almost most of the popular operating systems are written in C language, or its variant languages, such as UNIX, Linux, and even the Linux kernel written under the Inix system, and now, Lin Hong writes the Linux kernel under the Linux system.
Since Lin Hong already has a lot of experience in system programming, his progress was very fast when he first started.
First of all, the code writing environment is ready-made, and there is no need to spend additional time and effort to configure it.
If you want to write an operating system, the programming environment is also complex, not to say that the environment in which you can write application software is enough, but it needs to be customized, which usually requires considerable effort and time for programmers. Because the system you need to write is likely to be a completely new system, the existing software and tools may not meet your needs, so you have to implement these tools yourself.
It's like, you want to build a machine, but you don't have the right work
You also had to invent a lathe to make the parts of the car. It is conceivable that the time taken to invent the lathe may have taken an extremely long time.
As the saying goes, "sharpening the knife is not a mistake for a woodcutter", if you want to chop firewood quickly, you must have a sharp knife, but it also takes time to sharpen the knife.
And Lin Hong can directly omit this step now. Because his development environment can be completely the same as the Linux development environment, because the programming language used is the same.
Second, bootloaders such as bootloaders are almost off-the-shelf, and the original can be reused with just a few code changes.
So, in a very short time, he wrote the first routine "hellolinx".
After rebooting, he booted into his newly written operating system, and the words "hello" and "linx" began to be printed intermittently on the monitor.
Just like the first multi-process program written by Linus, he also implemented two threads, which run in the CPU at the same time, sharing the CPU's time slice.
Although he had already expected such a result, Lin Hong still took a look at the effect.
This is something programmers often do, although they have long expected the result of program execution, but they still choose to enter it themselves, and then run it and watch the computer execute it again. In this way, you can have a perceptual cognition, and at the same time, it is also a potential incentive for yourself, and the pride in watching the programs you write yourself gradually take shape, so that the computer can show various effects.
Lin Hong, who is familiar with psychology, naturally knows that this is actually people's control instinct, especially boys, who have this kind of control since childhood. They want to play with remote-controlled cars, they want to play games, it's the same thing.
The time to write code flies very quickly, and the details are debugged one by one, and before you know it, the sky is bright.
Starting today, the university life of the new students officially begins.
The first is to hold a class meeting, select the class leaders and listen to the counselor to introduce the specific situation, and people in the same class also meet each other and get to know each other.
Lin Hong saved everything and closed the notebook.
Now that it was time for morning exercise, he looked at the other people who were still sleeping in bed, and did not wake them up, but went directly to the bathroom to wash up and went out, the place was the school playground.
Universities, first of all, must be large in area.
After so many years of development, the area occupied by Mizuki University has increased from 450 acres at the beginning of the establishment of the university to more than 5,000 acres now, and this number is still increasing.
In China, a university is a city within a city, which is usually isolated from the outside world, and it is strictly forbidden for unrelated people outside the school to enter the school, which is indeed a kind of protection for students, but it also causes a kind of greenhouse effect, and students often have some discomfort with the social environment for a long time after they go out.
Lin Hong came to the playground next to the gymnasium, a 400-meter plastic track, and artificial turf covered the entire football field.
It was a little past six o'clock at the moment, and it was just after dawn, but there were already many people doing morning exercises on the playground.
There are students from the Department of Physical Education who are doing routine training, there are sports enthusiasts from other departments running on the track, and there are even a few people on the football field with soccer balls in targeted practice.
Lin Hong didn't start practicing immediately, but decided to run around the playground first to see the environment.
Before he had run far, someone shouted from behind him, "Boss, wait for me." ā
Lin Hong turned his head and saw that Zhang Dazheng was running from the direction of the dormitory.
"You actually got up, and you can't drink?" Lin Hong was a little surprised.
"I'm fine with beer, but my stomach is swollen. When I got up to go to the bathroom, I saw you just out the door. Boss, I've decided, I'm going to learn Kung Fu! It's always been my dream, even if I can't learn! Zhang Da said confidently.
Lin Hong wasn't too surprised by this, but nodded indifferently: "Well, okay." As you run, I'll give you a general introduction. ā
As he spoke, he began to run around jogging to warm up, and Zhang Da hurriedly followed.
"The fist-shaped Yiquan I practiced." Lin Hong said as he ran, "This is a kind of internal boxing method that focuses on actual combat. ā
"Xingyi Fist? I've heard of it before, and it's said to be called Xinyi Fist. ā
Lin Hong nodded: "Yes, but now it has been divided into several schools, and Xinyiquan is currently developing well overseas." My mentor is Lingnan Sun Jingtai. But what I'm going to teach you now is the way of formality......"
Lin Hong then told him the ins and outs of Xingyi Dao, as well as the aims and objectives.
"Your senior brother actually founded a sect and developed the martial arts hall so well abroad!"
After Zhang Da listened to the development of the Xingyi Daoist Hall, his eyes couldn't help but light up, and he admired Zhang Cheng. At the same time, he also very much recognizes the development concept of Xingyi Dao, at present, domestic martial arts are indeed rare, ordinary people can not contact it at all, only hear its voice and do not see its shape, so it is strange that it can develop healthily.
On the other hand, Japanese judo and Korean taekwondo have recently become popular in major cities.
"Although Xingyi Dao originates from Xingyi Fist, there are still many differences. This is the same as Jeet Kune Do, which originated from Wing Chun, but it has undergone great changes according to the characteristics of the development of the times. Although it is not yet possible to judge whether this change is progress or regression, it is at least in line with the current situation. ā
"Well, I'm more optimistic about Xingyi Dao. That's the way things are, if you are poor, you will think about change, change will be successful, and if you are general, you will be reached. If you stick to the old rules and don't change anything, you will fall into decline sooner or later. ā
Being able to be admitted to Shuimu University, Zhang Da naturally has his own uniqueness, and his IQ is only high.
"Xingyidao has decided to move the headquarters back to China, and then will start to establish branches across the country. I'm going to set up a Xingyi Dao club on the Mizuki campus, but I don't have much time on my own, so if you're interested, help me manage it. ā
When Zhang Da heard it, he became interested: "Start a club? Good idea! It's just that I'm new to Xingyidao, can I do it? ā
"Hehe, it's okay, just teaching others at the beginning is some basic skills, if you encounter any trouble, I'll come forward to solve it." However, since it is going to be done, it must be done well, and I don't want this club to be just an ornament. ā
"I'll do something, don't worry! Ha ha! ā
Zhang Da is still very confident in himself, from childhood to adulthood, as long as he is willing to do something seriously, there are few unsuccessful.
"Boss, don't talk so much, hurry up and teach me Xingyi Dao!"
ā¦ā¦
When Lin Hong and Zhang Dachen finished practicing, they went to the cafeteria to buy breakfast together.
After returning to the dormitory, Wu Dong had already gotten up and washed off the clothes that he didn't have time to wash yesterday, and by the way, he also washed the clothes that Zhang Da changed yesterday.
Zhang Da was moved to tears when he saw this, hugged Wu Dong and said that he was too virtuous and wanted to make a promise.
Under their fighting, they accidentally knocked down a wooden bench, and with a bang, Li Qi, who was still asleep, suddenly bounced up and asked, "What's wrong, what's wrong?" ā
Zhang Da smiled: "It's okay! It's almost time for a meeting, so get up. ā
When everyone was having breakfast together, Wu Dong said to Lin Hong: "Boss, I want to ask you for a favor with something." ā
Seeing him twisting like this, Zhang Da couldn't help but say: "If you have something, just say it, and be polite to the boss." ā
Lin Hong also said: "The second brother is right, they are all their own brothers, and they can say something directly." It's a bit too much of an outrage. Do you want to ask Zheng Jia out for a tryst? No problem, I'll make an appointment for you. ā
When Wu Dong heard Lin Hong's words, his face suddenly turned red, and he hurriedly said, "No, no, there is no such thing!" ā
"Oh~~~," Zhang Da exclaimed strangely when he saw this.
Li Qi also shouted: "Oh~~~"
The two of them didn't know that Wu Dong was interested in Zheng Jia, and when they saw Wu Dong's appearance at this moment, they didn't know what was going on.
"Don't think about it," Wu Dong hurriedly explained, .......
"No need to explain, explanation is a cover-up!" Zhang Da interrupted him, "Third child, I said that you are a big man, or a Shandong man, how can you look like a big girl."
It's not refreshing. What's wrong with liking girls? Isn't that a normal thing? ā
Lin Hong saw that the green tendons on Wu Dong's head were in a hurry, and hurriedly said, "Okay, okay." We're just kidding you. You say, what is it? ā
This time, Wu Dong said his thoughts briskly: "I want to learn computer technology from you." ā
! #