diff --git a/doc/codewalk/markov.xml b/doc/codewalk/markov.xml index 977c95dadb6..085ead7bcf4 100644 --- a/doc/codewalk/markov.xml +++ b/doc/codewalk/markov.xml @@ -275,16 +275,15 @@ p[len(p)-1] = suffix - To use this program, first compile and link it. - If you are using 6g as your compiler, the command - would look something like this: + To use this program, first build it with the + go command:
-$ 6g markov.go && 6l -o markov markov.6
+$ go build markov.go And then execute it while piping in some input text:
-$ echo "a man a plan a canal panama" | ./markov -prefix=1
-a plan a man a plan a canal panama
-	
+$ echo "a man a plan a canal panama" \ + | ./markov -prefix=1 +a plan a man a plan a canal panama Here's a transcript of generating some text using the Go distribution's README file as source material:
diff --git a/doc/debugging_with_gdb.html b/doc/debugging_with_gdb.html
index 51b650b18c8..84cc488db84 100644
--- a/doc/debugging_with_gdb.html
+++ b/doc/debugging_with_gdb.html
@@ -4,15 +4,15 @@
 }-->
 
 

-This applies to the 6g toolchain. Gccgo has native gdb support. Besides this -overview you might want to consult the +This applies to the gc toolchain. Gccgo has native gdb support. +Besides this overview you might want to consult the GDB manual.

Introduction

-When you compile and link your Go programs with the 6g/6l or 8g/8l toolchains +When you compile and link your Go programs with the gc toolchain on Linux, Mac OSX or FreeBSD, the resulting binaries contain DWARFv3 debugging information that recent versions (>7.1) of the GDB debugger can use to inspect a live process or a core dump. diff --git a/doc/go_faq.html b/doc/go_faq.html index c4f81c7b945..b5b7cc656de 100644 --- a/doc/go_faq.html +++ b/doc/go_faq.html @@ -187,8 +187,8 @@ document server running in a production configuration on Do Go programs link with C/C++ programs?

-There are two Go compiler implementations, 6g and friends, -generically called gc, and gccgo. +There are two Go compiler implementations, gc +(the 6g program and friends) and gccgo. Gc uses a different calling convention and linker and can therefore only be linked with C programs using the same convention. There is such a C compiler but no C++ compiler. @@ -994,7 +994,7 @@ Why is int 32 bits on 64 bit machines?

The sizes of int and uint are implementation-specific but the same as each other on a given platform. -The 64 bit Go compilers (both 6g and gccgo) use a 32 bit representation for +The 64 bit Go compilers (both gc and gccgo) use a 32 bit representation for int. Code that relies on a particular size of value should use an explicitly sized type, like int64. On the other hand, floating-point scalars and complex @@ -1321,7 +1321,7 @@ and uses a variant of the Plan 9 loader to generate ELF/Mach-O/PE binaries.

-We considered writing 6g, the original Go compiler, in Go itself but +We considered writing gc, the original Go compiler, in Go itself but elected not to do so because of the difficulties of bootstrapping and especially of open source distribution—you'd need a Go compiler to set up a Go environment. Gccgo, which came later, makes it possible to @@ -1331,7 +1331,7 @@ parser are already available in the go packa

-We also considered using LLVM for 6g but we felt it was too large and +We also considered using LLVM for gc but we felt it was too large and slow to meet our performance goals.