tinygo/loader
Ayke van Laethem e02727679f builder, cgo: support function definitions in CGo headers
For example, the following did not work before but does work with this
change:

    // int add(int a, int b) {
    //   return a + b;
    // }
    import "C"

    func main() {
        println("add:", C.add(3, 5))
    }

Even better, the functions in the header are compiled together with the
rest of the Go code and so they can be optimized together! Currently,
inlining is not yet allowed but const-propagation across functions
works. This should be improved in the future.
2021-09-28 18:44:11 +02:00
..
errors.go main: match go test output 2021-05-06 20:04:16 +02:00
goroot.go baremetal,wasm: support command line params and environment variables 2021-08-12 21:19:24 +02:00
list.go loader: rewrite/refactor much of the code to use go list directly 2020-09-03 22:10:14 +02:00
loader.go builder, cgo: support function definitions in CGo headers 2021-09-28 18:44:11 +02:00
ssa.go compiler: refactor and add tests 2021-01-15 14:43:43 +01:00