Home >Backend Development >Golang >Does Golang also use Golang at the bottom level?

Does Golang also use Golang at the bottom level?

Guanhui
GuanhuiOriginal
2020-06-10 09:47:312473browse

Does Golang also use Golang at the bottom level?

#Golang Is Golang also used at the bottom level?

The bottom layer of Golang is also implemented in Golang. In the earliest times, Golang was implemented in C and assembly. Later, Golang implemented bootstrapping and rewrote the Golang compiler, so now Golang It is implemented using Golang itself.

If you invent a new language Blang, you first need to write a Blang compiler in an existing language, for example, use Golang; you I wrote a Blang compiler in Golang, which can successfully compile any legal Blang source code into an equivalent target program. Then write a program in Blang, which has the same function as the compiler you wrote in Golang. Use the compiler implemented in Golang to compile the program, and you will get a Blang compiler implemented in Blang. Because the function of this program is exactly the same as the compiler written in Golang, you can use this compiler to compile Blang, so Blang implements bootstrapping.

Go

Go (also known as Golang) is a statically strongly typed, compiled, concurrent programming language with garbage collection capabilities developed by Google.

Robert Griesemer, Rob Pike and Ken Thompson started designing Go in September 2007, and later Ian Lance Taylor, Russ Cox joins the project. Go is developed based on the Inferno operating system. Go was officially announced in November 2009, becoming an open source project and implemented on Linux and Mac OS X platforms, and later added implementation under Windows systems. In 2016, Go was selected as "TIOBE's Best Language of 2016" by the software evaluation company TIOBE. Currently, Go releases a second-level version every six months (that is, upgrading from a.x to a.y)

Recommended tutorial: "Go Tutorial"

The above is the detailed content of Does Golang also use Golang at the bottom level?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn