diff --git a/arm.ld b/arm.ld index d052d805..ad3ab1ad 100644 --- a/arm.ld +++ b/arm.ld @@ -2,7 +2,7 @@ MEMORY { FLASH_TEXT (rw) : ORIGIN = 0x00000000, LENGTH = 256K /* .text */ - RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 16K + RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 64K } _stack_size = 2K; diff --git a/src/examples/hello/hello.go b/src/examples/hello/hello.go index 489aff22..592b239e 100644 --- a/src/examples/hello/hello.go +++ b/src/examples/hello/hello.go @@ -1,5 +1,7 @@ package main +import "unicode" + type Thing struct { name string } @@ -46,6 +48,9 @@ func main() { println("Stringer.String():", s.String()) runFunc(hello, 5) // must be indirect to avoid obvious inlining + + // test library functions + println("lower to upper char:", 'h', "->", unicode.ToUpper('h')) } func runFunc(f func(int), arg int) {