Ayke van Laethem
f107a24b72
all: use LLVM library provided by the system
2018-09-30 15:10:04 +02:00
Ayke van Laethem
318567f398
ir: fix nil pointer dereference in IsVolatile
2018-09-29 00:11:05 +02:00
Ayke van Laethem
8d170d3bd2
all: change special type __volatile to pragma //go:volatile
...
This is one step towards removing unnecessary special casts in most
cases. It is also part of removing as much magic as possible from the
compiler (the pragma is explicit, the special name is not).
2018-09-28 13:17:03 +02:00
Ayke van Laethem
13cb7d6503
avr: add interrupt support
...
Interrupts are supported using a special //go:interrupt pragma.
For example:
//go:interrupt INT0_vect
func handleINT0() {
// do something here
}
2018-09-25 13:47:20 +02:00
Ayke van Laethem
1b229a8f8b
compiler: support compiling individual .go files
...
For example:
tinygo run ./src/examples/test/test.go
2018-09-24 15:46:30 +02:00
Ayke van Laethem
a561e9a9ac
ir: move adding packages from the compiler
2018-09-24 15:46:30 +02:00
Ayke van Laethem
453450f40d
ir: sort function pragmas
2018-09-23 23:30:13 +02:00
Ayke van Laethem
b75a02e66d
compiler: refactor IR parts into separate package
2018-09-22 20:32:07 +02:00