1
0
mirror of https://github.com/golang/go synced 2024-11-22 18:14:42 -07:00
The Go programming language
Go to file
Russ Cox 8c253bcae5 first attempt at real FFI support.
in a .6 file, an export line

	//ffi T localfib remotefib remote.so

means the dynamic linker should initialize
localfib, always a pointer, to the address of
remotefib, either text (T) or data (D) after
loading remote.so.

the C compiler will generate an export section
when given the pragmas

	#pragma package fib
	#pragma ffi T localfib remotefib remote.so

needing #pragma package is a bit of a kludge
and hopefully could go away later.

this is just the 6 tool chain support.
other architectures will happen once 6 settles down.

code using this to do FFI is in a later CL.

R=r
DELTA=161  (141 added, 14 deleted, 6 changed)
OCL=33783
CL=33795
2009-08-24 16:15:21 -07:00
doc fix duplicated word 2009-08-24 16:12:59 -07:00
include rename libmach_amd64 libmach 2009-08-14 10:46:04 -07:00
lib/godoc printer.go: 2009-08-03 09:53:00 -07:00
misc/xcode xcode config files, self-describing 2009-05-20 16:09:34 -07:00
pkg clear out pkg tree in clean.bash. 2009-05-20 11:12:05 -07:00
src first attempt at real FFI support. 2009-08-24 16:15:21 -07:00
test Match gccgo error messages. 2009-08-24 15:56:39 -07:00
usr Make it only necessary to exit blocks, not scopes. Allow 2009-08-24 13:48:16 -07:00
AUTHORS Add AUTHORS and LICENSE files. 2009-08-13 09:21:28 -07:00
LICENSE Add AUTHORS and LICENSE files. 2009-08-13 09:21:28 -07:00