tinygo/testdata/cgo
Ayke van Laethem f316ebc23b all: include picolibc for bare metal targets
This is necessary for better CGo support on bare metal. Existing
libraries expect to be able to include parts of libc and expect to be
able to link to those symbols.

Because with this all targets have a working libc, it is now possible to
add tests to check that a libc in fact works basically.

Not all parts of picolibc are included, such as the math or stdio parts.
These should be added later, when needed.

This commit also avoids the need for the custom memcpy/memset/memcmp
symbols that are sometimes emitted by LLVM. The C library will take care
of that.
2020-03-22 17:14:59 +01:00
..
extra.go cgo: refactor; support multiple cgo files in a single package 2019-05-12 10:49:15 +02:00
main.c cgo: add support for bitfields using generated getters and setters 2019-06-03 16:13:19 +02:00
main.go all: include picolibc for bare metal targets 2020-03-22 17:14:59 +01:00
main.h cgo: add support for nested structs and unions 2019-11-08 08:38:50 +01:00
out.txt all: include picolibc for bare metal targets 2020-03-22 17:14:59 +01:00