Chapter 235 Programming Languages

235.

"Wow! This is The Art of Computer Programmin, great, I didn't read the book very much before, I forgot a lot of it, and now it's just right. The world is a blank slate when it comes to computers, and I need to supplement it with these basic theories. โ€

"Introduction to Algorithms, this is an introduction to algorithms, known as the bible of computer algorithms! Although I have read it before, it is so profound that I can't remember many places, and now I need to review it. โ€

"Data Structure & Algorithm Analysis in C (Second Edition), a classic of data structure and algorithm analysis!"

Cheng Li looked at the past one by one in the world of books, like a child, waving his hands happily, and every time he picked up a book, it was like a treasure.

He was so satisfied with his foundation-building talent that he was just about to sleep when someone handed him a pillow.

Originally, Cheng Li still had a headache about how to build everything from scratch in this world.

After all, when he crossed before, he didn't know that he was going to cross, and he didn't make too many preparations.

Before, whether it was an addition machine or designing an algorithm, it was still within his ability, so he could barely eat his old book and rely on the knowledge in his memory to play.

But then, if you want to go further, such as programming, you need to have a compiler first, and if you want to make a compiler, it's very difficult.

No matter how genius Cheng Li is, it is impossible for him to memorize so many things based on his previous memory, many of which have been forgotten, not to mention that he has never learned how to design a compiler before.

Therefore, now that he has this Ten Thousand Worlds Library, he feels like a tiger with wings, and for a while he is more confident that he will continue to go further on this procedural cultivation avenue.

"Before, when I watched these cultivators release spells, as well as my own spells, I probably had some inspiration. โ€

"When a cultivator releases a spell, he is actually programming his mana in his own dantian. The written phrase is actually a programme. โ€

"However, cultivators write spells directly in binary language, so if they want to develop new spells on a large scale, it is not very efficient. So I was thinking about whether I could use a high-level language to program when writing the magic formula in the dantian......"

"But if you want to program in a high-level language, you definitely need a compiler. โ€

The compiler is, in fact, the translator of the computer language system.

It can translate the high-level language of the computer into the machine language that the computer can directly understand.

In the 21st century, due to the improvement of writing efficiency, programmers on the earth basically write programs in high-level languages.

Each high-level language has its own compiler, or, arguably, the compiler is the core, or even the entirety, of a high-level language.

When a programmer writes a program, he or she should write the code in accordance with the format requirements specified by the compiler.

In this way, the code can be correctly translated into machine language by the compiler.

SO, IF YOU WANT TO PROGRAM IN HIGH-LEVEL LANGUAGES LIKE C++ OR JAVA, YOU FIRST NEED TO HAVE A COMPILER.

If not, then you'll have to figure out how to make a compiler out of it yourself, which is undoubtedly very difficult.

On the planet, it is usually the top computer scientists, and it takes a large team to design a new programming language, that is, to design a corresponding compiler.

"I haven't read much about how compilers are designed before, because there are very few programmers on the planet who are so mad as to design a compiler on their own. โ€

Cheng Li thought for a moment.

"I just remember that there was a copy of Inside the C++ Object Model that was a compiler for a more in-depth introduction to the C++ language. โ€

The book explores a number of the underlying workings of C++ object-oriented programming, including constructors, functions, temporary objects, inheritance, virtualization, instantiation of templates, exception handling, runtime type recognition, and some of the trade-offs made in implementing the C++ object model. It gives you a lot of details about how the compiler interprets the source code, as well as the details of memory allocation......"

"I wonder if there will be a book here?"

Cheng Li began to search carefully, and if he could find this book, he would undoubtedly have a deeper understanding of how the C++ compiler works.

However, this library doesn't seem to have an index function, and Xiao Shutong also looks like he is holding his hands cross-legged on his chest to watch the excitement, it seems that he can't be counted on, so Cheng Li has to find it himself.

After looking for a while, Cheng Li's eyes suddenly lit up, and he saw a row of special bookshelves.

This row of bookshelves seems to be tailor-made for him.

Because Cheng Li found that almost all the books on this row of shelves were related to the compiler, he did not hesitate to quickly browse through this row of bookshelves, and soon, he found the book "Inside the C++ Object Model" at the end of the bookshelf.

"Found it!"

Cheng Li excitedly took the thick book off the shelf, but Cheng Li turned the pages and was dumbfounded.

I saw that when the book was opened, there were layers of fog floating on the pages, making it impossible to see the text content on it at all.

"Is there a mistake, I finally found it, but I didn't let you see it?"

Cheng Li couldn't help but feel a little impulsive to drop the book.

"Haha, there is a fog in the book, which means that although the book was included because you knew it before. But your cultivation is too low now, so you haven't unlocked it for the time being. So you'll have to read other books. The little arithmetic boy gloated.

"Cut, okay, I'll find another book then. โ€

Cheng Li began to scroll forward, and he saw a large number of books on various high-level languages such as C++, JAVA, Prolog, and BASIC.

But without exception, each one is shrouded in fog.

Cheng Li did not believe in evil and continued to turn forward.

Then Cheng Li found that the books on this bookshelf were almost arranged in the order in which the high-level programming languages came out.

The further back you go, the later programming languages appear.

And the further forward it is, the earlier the programming language appears.

"Is there a mistake that ALGOL60 can't read it?"

Cheng Li looked at another book shrouded in fog and couldn't help sighing.

He could only keep flipping forward.

"LISP doesn't work either......"

"Fortran Language...... It's all right, isn't it? It's the first high-level language, right?"

Cheng Li picked it up and said after seeing a book that was almost placed in the front row.

However, when he flipped over, it was still covered in fog.

"Is there any mistake? Fortran doesn't work either? What other languages did you have earlier?"

Cheng Li looked at the first book placed at the top of this row of bookshelves.

It reads "Plankalkรผl Language Design Manuscript" by Zuse......