]> Cypherpunks repositories - gostls13.git/commitdiff
First steps at command documentation: C compilers and linkers.
authorRob Pike <r@golang.org>
Wed, 4 Nov 2009 00:05:47 +0000 (16:05 -0800)
committerRob Pike <r@golang.org>
Wed, 4 Nov 2009 00:05:47 +0000 (16:05 -0800)
Each command gets a doc.go file for godoc to analyze. Its main
element is a package comment.

R=rsc
CC=go-dev
http://go/go-review/1018029

src/cmd/5c/doc.go [new file with mode: 0644]
src/cmd/5l/doc.go [new file with mode: 0644]
src/cmd/6c/doc.go [new file with mode: 0644]
src/cmd/6l/doc.go [new file with mode: 0644]
src/cmd/8c/doc.go [new file with mode: 0644]
src/cmd/8l/doc.go [new file with mode: 0644]

diff --git a/src/cmd/5c/doc.go b/src/cmd/5c/doc.go
new file mode 100644 (file)
index 0000000..f1b3fa1
--- /dev/null
@@ -0,0 +1,14 @@
+// Copyright 2009 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+/*
+
+5c is a version of the Plan 9 C compiler documented at
+
+       http://plan9.bell-labs.com/magic/man2html/1/2c
+
+Its target architecture is the ARM, referred to by these tools as arm.
+
+*/
+package documentation
diff --git a/src/cmd/5l/doc.go b/src/cmd/5l/doc.go
new file mode 100644 (file)
index 0000000..1d22e39
--- /dev/null
@@ -0,0 +1,26 @@
+// Copyright 2009 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+/*
+
+5l is a modified version of the Plan 9 loader documented at
+
+       http://plan9.bell-labs.com/magic/man2html/1/2l
+
+Its target architecture is the ARM, referred to by these tools as arm.
+
+Major changes include:
+       - support for segmented stacks (this feature is implemented here, not in the compilers).
+
+
+Original options are listed in the link above.
+
+Options new in this version:
+-L dir1,dir2,..
+       Search for libraries (package files) in the comma-separated list of directories.
+       The default is the single location $GOROOT/pkg/$GOOS_arm.
+
+
+*/
+package documentation
diff --git a/src/cmd/6c/doc.go b/src/cmd/6c/doc.go
new file mode 100644 (file)
index 0000000..b71aad9
--- /dev/null
@@ -0,0 +1,14 @@
+// Copyright 2009 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+/*
+
+6c is a version of the Plan 9 C compiler documented at
+
+       http://plan9.bell-labs.com/magic/man2html/1/2c
+
+Its target architecture is the x86-64, referred to by these tools as amd64.
+
+*/
+package documentation
diff --git a/src/cmd/6l/doc.go b/src/cmd/6l/doc.go
new file mode 100644 (file)
index 0000000..0417fa3
--- /dev/null
@@ -0,0 +1,32 @@
+// Copyright 2009 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+/*
+
+6l is a modified version of the Plan 9 loader documented at
+
+       http://plan9.bell-labs.com/magic/man2html/1/2l
+
+Its target architecture is the x86-64, referred to by these tools as amd64.
+
+Major changes include:
+       - support for ELF and Mach-O binary files 
+       - support for segmented stacks (this feature is implemented here, not in the compilers).
+
+
+Original options are listed in the link above.
+
+Options new in this version:
+
+-H6
+       Write Apple Mach-O binaries (default when $GOOS is darwin)
+-H7
+       Write Linux ELF binaries (default when $GOOS is linux)
+-L dir1,dir2,..
+       Search for libraries (package files) in the comma-separated list of directories.
+       The default is the single location $GOROOT/pkg/$GOOS_amd64.
+
+
+*/
+package documentation
diff --git a/src/cmd/8c/doc.go b/src/cmd/8c/doc.go
new file mode 100644 (file)
index 0000000..c16ae4e
--- /dev/null
@@ -0,0 +1,14 @@
+// Copyright 2009 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+/*
+
+8c is a version of the Plan 9 C compiler documented at
+
+       http://plan9.bell-labs.com/magic/man2html/1/2c
+
+Its target architecture is the x86, referred to by these tools for historical reasons as 386.
+
+*/
+package documentation
diff --git a/src/cmd/8l/doc.go b/src/cmd/8l/doc.go
new file mode 100644 (file)
index 0000000..62d588d
--- /dev/null
@@ -0,0 +1,32 @@
+// Copyright 2009 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+/*
+
+8l is a modified version of the Plan 9 loader documented at
+
+       http://plan9.bell-labs.com/magic/man2html/1/2l
+
+Its target architecture is the x86, referred to by these tools for historical reasons as 386.
+
+Major changes include:
+       - support for ELF and Mach-O binary files 
+       - support for segmented stacks (this feature is implemented here, not in the compilers).
+
+
+Original options are listed in the link above.
+
+Options new in this version:
+
+-H6
+       Write Apple Mach-O binaries (default when $GOOS is darwin)
+-H7
+       Write Linux ELF binaries (default when $GOOS is linux)
+-L dir1,dir2,..
+       Search for libraries (package files) in the comma-separated list of directories.
+       The default is the single location $GOROOT/pkg/$GOOS_386.
+
+
+*/
+package documentation