Siheyuan: Starting from a fitter

Chapter 151 Pangu Advanced Programming Language

Chapter 151 Pangu Advanced Programming Language
The 98 condensed instructions directly correspond to machine language, which are instructions composed of '0' and '1', and the program counter (i.e., PC pointer) can directly execute instructions.

A compiler is a program that translates source code (a high-level language program) into executable code (a machine language instruction set) that a computer can understand.To put it simply, a compiler is a program, and this program is used to translate human words into words that computers can understand.

With the current basic technology being so difficult, the font library of 26 English letters is simpler and can be implemented by just finding a corner of the CPU.Why did Li Guocheng spend so much effort designing a Chinese character library?

The reason is very simple. Since we are one step ahead in computer technology, we must let the Chinese people who use computers for the first time have the first impression. The high-level computer language is written in Chinese.

Although Li Guocheng completely imitated the C language architecture and designed the Chinese programming language, there is no other way. We are the first to come up with high-level languages, who will let you fall 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. He took the second letter of BCPL as the name of this language, which is the C language.

In 1982, they established the C Standards Committee to establish a standard for the C language.The committee is composed of hardware manufacturers, compiler and other software tool manufacturers, software designers, consultants, academics, C language authors, and application programmers. In 1989, ANSI released the first complete C language standard-ANSI X3.159-1989, referred to as "C89".

Sorry, Li Guocheng designed a more advanced Chinese programming language than you in 1967, Pangu.Compared to them, we are just imitating, and we are much gentler and kinder than them.

Li Guocheng must hurry up before them and determine China's Pangu standards.As long as our computer technology never lags behind, with China's size and global influence, the Pangu standard will be one of the world's standards.

As long as China holds its own in terms of patents, it will be much more difficult to strangle us in the future.

After so many years, Li Guocheng has become very vague about the details of C language.But after more than a year of using C language, I have a very deep understanding of its core concepts.

According to the 98 streamlined instructions, combined with the core concept of the C language, Li Guocheng deduced it in his mind, and wrote it down as soon as he got the results.

For example, the 'hello Word' code in C language using Pangu language is:

#Contains "Pangu Language System.Interface"

Integer type main function()
{
format output("Hello, world! %line");
pause();
return 0;
}
This time, telekinesis worked again. I originally thought it would take more than half a year to complete the design. Unexpectedly, it only took half a month to complete the first version of Pangu language. Although it is not as large as the later C language with huge library functions, now this version is sufficient.

Li Guocheng originally wanted to continue the deduction, but considering the storage space occupied, he gave up temporarily.It is only a matter of time before the deduction continues, but taking up a huge storage space is too uneconomical.

So now a version has been temporarily determined, and Li Guocheng calls it PG67. 'PG' is the first letter of Pangu's pinyin, and '67' represents 1967, highlighting the age of the design finalization.

Once the programming language is done, the next task is relatively simple, just workload.It is to design the compiler. This work is even simpler. One-to-one correspondence between all the content of Pangu language and the numbers of the Chinese character library is then converted into 98 streamlined instructions.

Therefore, Li Guocheng bound the Pangu language into a book, and then wrote down the principles of the compiler clearly, and gave this task to Zhang Zhijing, who was responsible for verification himself.

In the process of completing the compiler task, Zhang Zhijing also became familiar with the Pangu language.The operating system happens to be written in the Pangu language.After all, you can’t always be abstract and work on paper all the time. Only by running it on the computer can you prove the correctness of the design.

Since there are currently no devices designed that do not lose data when power is turned off, such as FLASH, the compiler, operating system, and Chinese character library all need to be designed with special chips, and the contents are all solidified.

When running, the operating system executable code (machine language) is first moved to the DRAM, and then the user programs it. After the programming is completed, the compiler is called to form the user executable code, and the content is also stored in the DRAM.

After power failure, the programmed program will be lost.This is too inconvenient.In later generations, the initial storage media was 5-inch floppy disks, then 3-inch floppy disks, and then hard disks and removable hard disks.

Li Guocheng is a little troubled now. He has become accustomed to the computer storage mechanism of later generations. It is difficult for him to tolerate this intermediate product, let alone the use of currently common paper tape.

Mechanical hard drives must be designed, otherwise, subsequent technological progress will be severely limited.

The principle of a hard drive is very similar to that of a phonograph disc, which uses magnetic material to record data and then reads it through a magnetic head.

The current technology is relatively backward. If one magnetic disk cannot record much data, then multiple disks 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 brush motor, otherwise the electromagnetic radiation generated will destroy the disc data.

Then design a DC brushless motor.

Li Guocheng now has a headache. In order to record data, he thought of designing a mechanical hard drive. In order to produce mechanical hard drives, it is necessary to design precision mechanical structures. In order to manufacture precision mechanical structures, it is necessary to design precision processing production lines.

"I have a headache!" Li Guocheng now has difficulty choosing again.

"Forget it, don't care, ask everyone's opinions tomorrow, you can't do everything yourself."

The next day, Li Guocheng gathered everyone in the semiconductor laboratory and explained the characteristics and storage requirements of the 103 computer to everyone.

"Let's talk about it, should we choose the existing architecture, or should we make a mechanical hard drive and then complete the design of the Sugon 103 computer?" Li Guocheng looked at everyone, hoping to gain strength and support through brainstorming.

"I think so. It's pretty good now. With this, yes, it's the full-size keyboard that everyone said, you can write programs to perform complex calculations, and you can also display Chinese characters on the screen." Seeing everyone thinking, the waiter asked him first speak.

Zhang Zhijing thought for a while, "I just heard from Brother Li that we have a programming language, and it is very advanced. It can obviously do more work, such as document processing and large-scale engineering calculations. If you need to re-enter programs or text every time, just It’s too troublesome. If it can be stored and modified at any time, it will bring great convenience to users.”

It seems that Zhang Zhijing has recently started learning operating system concepts and has started to look at problems from a system perspective.

thanks for your support! ! !Please recommend!Asking for a monthly ticket!Please comment!
(End of this chapter)

Tap the screen to use advanced tools Tip: You can use left and right keyboard keys to browse between chapters.

You'll Also Like