aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2023-03-06 00:06:08 +0100
committerRon Evans <[email protected]>2023-03-08 07:09:46 +0100
commitea97c6095995c3e1900e133e1bf8d5a2ba361f04 (patch)
tree12bf31c003794b35ebd4ce9cdce38ceb925c35c6 /tools
parentde281191e09ae27d1b73214eb289a2a301c8e849 (diff)
downloadtinygo-ea97c6095995c3e1900e133e1bf8d5a2ba361f04.tar.gz
tinygo-ea97c6095995c3e1900e133e1bf8d5a2ba361f04.zip
builder: sizes: list interrupt vector as a pseudo-package for -size=full
This is another bit of memory that is now correctly accounted for in `-size=full`.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/gen-device-svd/gen-device-svd.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/gen-device-svd/gen-device-svd.go b/tools/gen-device-svd/gen-device-svd.go
index 087a66226..8eb308c7f 100755
--- a/tools/gen-device-svd/gen-device-svd.go
+++ b/tools/gen-device-svd/gen-device-svd.go
@@ -1422,6 +1422,9 @@ __isr_vector:
for _, intr := range device.Interrupts {
fmt.Fprintf(w, " IRQ %s_IRQHandler\n", intr.Name)
}
+ w.WriteString(`
+.size __isr_vector, .-__isr_vector
+`)
return w.Flush()
}