Documentation
¶
Overview ¶
Package ccgo translates C99 ASTs to Go source code. Work In Progress. API unstable.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewObject ¶
func NewObject(out io.Writer, goos, goarch, file string, in *cc.TranslationUnit, tweaks *NewObjectTweaks) (err error)
NewObject writes a linker object file produced from in that comes from file to out.
Types ¶
type Linker ¶
type Linker struct {
Main bool // Seen external definition of main.
// contains filtered or unexported fields
}
Linker produces Go files from object files.
func NewLinker ¶
NewLinker returns a newly created Linker writing to out.
The Linker must be eventually closed to prevent resource leaks.
Click to show internal directories.
Click to hide internal directories.