Chapter 151: Pangu High-Level Programming Language
The 98 reduced instructions, which directly correspond to machine language, are instructions composed of '0' and '1', and can be executed directly by the program counter (i.e., the PC pointer).
A compiler is a program that translates source code (high-level language programs) into executable code (machine language instruction sets) that computers can understand. To put it simply, a compiler is a program that translates human words into something that a computer can understand.
In the current situation where the basic technology is so difficult, the 26-letter font library is simpler, and it can be achieved by just finding a corner of the CPU. What did Li Guocheng spend so much effort to design a Chinese font library?
The reason is very simple, since computer technology is now one step ahead, it is necessary to let the Chinese people who use computers for the first time preconceived, and the high-level language of computers is written in Chinese.
Although Li Guocheng completely imitated the C language architecture and designed the Chinese programming language, there is no way, we are the first to come up with a high-level language, who makes you lag behind! Li Guocheng called this Chinese programming language Pangu high-level language.
In 1972, Dennis Ritchie of Bell Labs in the United States finally designed a new language based on the B language, and he took the second letter of the BCPL as the name of this language, which is the C language.
In 1982, they formed the C Standards Committee to establish standards for the C language. The committee is made up of hardware vendors, compiler and other software tool manufacturers, software designers, consultants, academics, C authors, and application scientists. In 1989, ANSI released the first complete C language standard, ANSI X3.159-1989, or "C89" for short.
Sorry, Li Guocheng designed a more advanced Chinese programming language than you in 1967, Pangu. Compared to them, we are just imitations, much more gentle and kind than them.
Li Guocheng had to rush ahead of them and determine the Pangu standard in Huaxia. As long as our computer technology has not lagged behind, with the size of China and the influence of the world, the Pangu standard is one of the world's standards.
As long as Huaxia does not drop the chain in terms of patents, it will be much more difficult to pinch our necks in the future.
After so many years, Li Guocheng's details of the C language have become very vague. However, after more than a year of using the C language, I have a very deep understanding of his core concepts.
According to the 98 condensed instructions, combined with the core concept of the C language, Li Guocheng continued to deduce in his mind, and hurriedly wrote down the results when he had them.
For example, the 'hello Word' code in C is as follows:
#包含 "Pangea Language System. Interface"
Integer type main function()
{
Format output ("Hello, world!") % line");
Pause();
returns 0;
}
This time the telekinesis made another meritorious service, I thought it would take more than half a year to complete the design, but I didn't expect that it only took half a month to complete the first version of the Pangu language, although it is not as good as the later C language has a huge library function, but now this version is enough to use.
Li Guowei wanted to continue the deduction, but considering the occupation of storage space, he gave up for the time being. It's only a matter of time before it goes down, but taking up a lot of storage space makes it too uneconomical.
So now a version has been temporarily determined, Li Guocheng called it PG67, 'PG' is the pinyin initials of Pangu, and '67' represents 1967, highlighting the age of the finalization of the design.
The programming language is done, and the next job is relatively simple, only the workload. It is to design the compiler, this work is simpler, all the content of the Pangu language and the number of the Chinese font library are corresponded, and then converted into 98 reduced instructions.
Therefore, Li Guocheng bound the Pangu language into a book, and then wrote down the principle of the compiler clearly, and handed over this task to Zhang Zhijing, who was responsible for verifying it himself.
In the process of completing the compiler task, Zhang Zhijing is also familiar with the Pangu language. The operating system is written in the Pangu language. After all, you can't always abstract and work on paper, and only by running on a computer can you prove the correctness of the design.
Since there is no device designed to prevent data loss due to power failure, such as FLASH, the compiler, operating system, and Chinese character font all need to be designed with special chips, and the content is all solidified.
At runtime, the operating system executable code (machine language) is first moved to the DRAM, and then the user programming, after the programming is completed, the compiler is called to form the user executable code, and the content is also stored in the DRAM.
When the power is off, the program will be lost. It's also too inconvenient. In later generations, the original storage medium was a 5-inch floppy disk, then a 3-inch floppy disk, and then a hard disk, and a portable hard disk.
Li Guocheng is now a little distressed, he is used to the computer storage mechanism of later generations, and it is difficult for him to tolerate this intermediate transitional product, let alone use the current common paper tape.
HDDs must be designed, otherwise they will severely limit subsequent technological advances.
Hard disks work very similarly to phono discs, using magnetic materials to record data and then read it through the head.
The current process is relatively backward, and if a magnetic disk cannot record much data, then multiple discs are used to achieve it.
The biggest technical difficulty is the precision mechanical structure, which is Li Guocheng's strength. Of course, the spindle motor cannot use the current brushed motor, otherwise the electromagnetic radiation generated will destroy the platter data.
Then design a brushless DC motor.
Li Guocheng now has a bit of a headache, in order to record data, he thought of designing a mechanical hard disk; In order to produce mechanical hard disks, it is necessary to design a precision mechanical structure; In order to manufacture precision mechanical structures, it is necessary to design precision machining production lines.
"Headache!" , Li Guocheng is now stuck in a difficult choice again.
"Forget it, don't care, ask everyone's opinions tomorrow, you can't do everything yourself."
The next day, Li Guocheng gathered all the people in the semiconductor laboratory and explained the characteristics and storage requirements of the 103 computer.
"Let's talk about it, should we choose the existing architecture, or do we make a mechanical hard disk and complete the design of the Dawning 103 computer?" Li Guocheng looked at everyone, hoping to get strength and support through brainstorming.
"I think so, it's good now, through this, yes, the full-size keyboard that everyone said can write programs for complex calculations, and it can also be displayed in Chinese on the screen", the waiting worker saw that everyone was thinking, so he spoke first.
Zhang Zhijing thought for a while, "I just heard Brother Li introduce that we have a programming language, and it is very advanced, and it can obviously do more work, such as document processing, large-scale engineering calculations, if you need to re-enter the program or text every time, it will be too troublesome, if it can be stored, it can also be modified at any time, it will bring great convenience to users."
It seems that Zhang Zhijing has recently learned the concept of operating system, and she has looked at problems from a system perspective.
Thank you all for your support!! Ask for recommendations! Ask for a commuter pass! Ask for a review!
(End of chapter)