Package ccgo translates cc ASTs to Go source code. (Work In Progress)
2018-07-01 This package is no longer maintained. Please see the v2 version at
2018-04-10: This code no longer passes tests and soon it will not even build due to the upcoming changes in cznic/crt. For that reason the current crt master branch package is now included in this repository for the improbable case someone wants to make the code work again.
This section is empty.
New writes Go code generated from ast to out. No package or import clause is generated.
type Option func(*options) error
Option is a configuration/setup function that can be passed to the New function.
func LibcTypes() Option
LibcTypes makes code refering to libc types import them from the CRT package.
func Library() Option
Library selects the library linking mode, ie. the linkew will include all objects having external linkage.
Package crt provides C-runtime services.
|Package crt provides C-runtime services.|
Package ccgo translates C99 ASTs to Go source code.
|Package ccgo translates C99 ASTs to Go source code.|
Command ccgo is a C compiler targeting Go.
|Command ccgo is a C compiler targeting Go.|