mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-12 06:53:40 +00:00
runtime: print the address where a panic happened
This is not very useful in itself, but makes it possible to detect this address in the output. See the next commit. This adds around 50 bytes to each binary (except for AVR and wasm). This is unfortunate, but I think this feature is quite useful still. A future enhancement might be to create a build tag for extended panic information that's not set by default.
This commit is contained in:
committed by
Ron Evans
parent
59838338ba
commit
3392827c3e
@@ -41,9 +41,9 @@ func TestBinarySize(t *testing.T) {
|
||||
// This is a small number of very diverse targets that we want to test.
|
||||
tests := []sizeTest{
|
||||
// microcontrollers
|
||||
{"hifive1b", "examples/echo", 4556, 272, 0, 2252},
|
||||
{"microbit", "examples/serial", 2680, 380, 8, 2256},
|
||||
{"wioterminal", "examples/pininterrupt", 6109, 1471, 116, 6816},
|
||||
{"hifive1b", "examples/echo", 4612, 276, 0, 2252},
|
||||
{"microbit", "examples/serial", 2724, 384, 8, 2256},
|
||||
{"wioterminal", "examples/pininterrupt", 6159, 1477, 116, 6816},
|
||||
|
||||
// TODO: also check wasm. Right now this is difficult, because
|
||||
// wasm binaries are run through wasm-opt and therefore the
|
||||
|
||||
Reference in New Issue
Block a user