fding
fding

Reputation: 455

Where can I get the C VERSION of go-lang source code?

As I know, go-lang is written by C at the beginning, and now it is written by itself. I want to figure out some fundamental implementations of go-lang, such as multi-return-value-of-function, which probably use structure I guess.

But now the go-lang version of go-lang source code has conceal these details, so where can I get the C version of go-lang source code (history version)? I've checked golang.org, nothing found.

Thanks.

Upvotes: 6

Views: 2072

Answers (3)

peterSO
peterSO

Reputation: 166626

Go 1.5 Release Notes

The compiler and runtime are now written entirely in Go (with a little assembler). C is no longer involved in the implementation, and so the C compiler that was once necessary for building the distribution is gone.

Therefore, check out the source code for previous release: release-branch.go1.4.

For example,

git clone https://go.googlesource.com/go --branch release-branch.go1.4 --single-branch go1.4

Upvotes: 9

Zan Lynx
Zan Lynx

Reputation: 54325

I use Go 1.4.2 to bootstrap newer Go versions. I did a Go 1.6 build just this week.

It looks like there is a Go 1.4.3 available here: https://storage.googleapis.com/golang/go1.4.3.src.tar.gz

Upvotes: 0

John_West
John_West

Reputation: 2399

The r56 release was the first stable release and corresponds to weekly.2011-03-07.1.

The code is on github. It includes C, bash, go.

Upvotes: 0

Related Questions