]> Cypherpunks repositories - gostls13.git/commit
8c, 8l dynamic loading support.
authorRuss Cox <rsc@golang.org>
Sat, 3 Oct 2009 17:37:12 +0000 (10:37 -0700)
committerRuss Cox <rsc@golang.org>
Sat, 3 Oct 2009 17:37:12 +0000 (10:37 -0700)
commit133a158bd82901f48d6baa2680953e917c53339e
tree7b69b0974f4999bac76d11abed2071a2dc9e97aa
parentf15300beb70586e1814782a8c61e0bdf11e0e80a
8c, 8l dynamic loading support.
better mach binaries.
cgo working on darwin+linux amd64+386.
eliminated context switches - pi is 30x faster.
add libcgo to build.

on snow leopard:
  - non-cgo binaries work; all tests pass.
  - cgo binaries work on amd64 but not 386.

R=r
DELTA=2031  (1316 added, 626 deleted, 89 changed)
OCL=35264
CL=35304
52 files changed:
misc/cgo/gmp/Makefile
misc/cgo/gmp/fib.go [new file with mode: 0644]
misc/cgo/gmp/pi.go [moved from misc/cgo/gmp/pidigits.go with 100% similarity]
misc/cgo/stdio/Makefile [new file with mode: 0644]
misc/cgo/stdio/fib.go [new file with mode: 0644]
misc/cgo/stdio/file.go [new file with mode: 0644]
misc/cgo/stdio/hello.go [new file with mode: 0644]
src/Make.pkg
src/cmd/6l/asm.c
src/cmd/6l/l.h
src/cmd/6l/obj.c
src/cmd/6l/pass.c
src/cmd/6l/span.c
src/cmd/8l/asm.c
src/cmd/8l/l.h
src/cmd/8l/obj.c
src/cmd/8l/pass.c
src/cmd/8l/span.c
src/cmd/cgo/ast.go
src/cmd/cgo/gcc.go
src/cmd/cgo/main.go
src/cmd/cgo/out.go
src/cmd/ld/elf.h
src/cmd/ld/macho.c
src/cmd/ld/macho.h
src/libcgo/386.S [new file with mode: 0644]
src/libcgo/Makefile
src/libcgo/amd64.S [new file with mode: 0644]
src/libcgo/cgocall.c [deleted file]
src/libcgo/darwin_386.c [new file with mode: 0644]
src/libcgo/darwin_amd64.c [new file with mode: 0644]
src/libcgo/libcgo.h [new file with mode: 0644]
src/libcgo/linux_386.c [new file with mode: 0644]
src/libcgo/linux_amd64.c [new file with mode: 0644]
src/libcgo/linux_arm.c [new file with mode: 0644]
src/libcgo/nacl_386.c [new file with mode: 0644]
src/libcgo/util.c [new file with mode: 0644]
src/libmach/executable.c
src/make.bash
src/pkg/runtime/386/asm.s
src/pkg/runtime/Makefile
src/pkg/runtime/amd64/asm.s
src/pkg/runtime/cgocall.c
src/pkg/runtime/cgocall.h
src/pkg/runtime/darwin/386/sys.s
src/pkg/runtime/darwin/thread.c
src/pkg/runtime/linux/386/rt0.s
src/pkg/runtime/linux/386/sys.s
src/pkg/runtime/linux/thread.c
src/pkg/runtime/mkasmh.sh
src/pkg/runtime/proc.c
src/pkg/runtime/runtime.h