You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While you can install puncover as an executable, I typically just run the
288
294
`runner.py` script directly. All it requires is the path to your GNU ARM
@@ -323,6 +329,20 @@ symbols do not come with file information as newlib is not compiled with `-g` in
323
329
most distributions. If you built your own newlib from source, you could fix
324
330
that!
325
331
332
+
### Puncover in Zephyr
333
+
334
+
The Zephyr RTOS project has the ability to [run puncover directly within West](https://docs.zephyrproject.org/latest/develop/optimizations/tools.html#build-target-puncover). It's slick!
335
+
336
+
You can do so by running the following:
337
+
338
+
```
339
+
# Build as normal
340
+
west build ...
341
+
342
+
# After installing puncover with 'pip install puncover'
343
+
west build -t puncover
344
+
```
345
+
326
346
## Epilogue
327
347
328
348
Upon reviewing this blog post, a friend suggested I look at Bloaty by Google.
@@ -333,8 +353,8 @@ Bloaty is a nifty tool that wraps all the objdump analysis into a nice CLI
333
353
client, and can even tell you what sections, symbols, and files grew or shrunk
334
354
between two ELFs which would be very useful for a CI system.
335
355
336
-
What tools and technique do you use to debug code size? Let us know in the
356
+
What tools and techniques do you use to debug code size? Let us know in the
337
357
comments!
338
358
339
-
Next in the series, we'll talk about compiler settings you can use to optimize
340
-
for code size.
359
+
Next in the series, we'll talk about [compiler settings you can use to optimize
360
+
for code size]({% post_url 2019-08-20-code-size-optimization-gcc-flags %}).
0 commit comments