Generating an assembly listing under platform.io #964
Answered
by
SpenceKonde
robmaxtech
asked this question in
Q&A
Replies: 2 comments 4 replies
-
/path/to/avr-objdump" --disassemble --source --line-numbers --demangle
--section=.text "/path/to/setch.ino.elf" > "/path/to/outputfile.lst"
(extracted from the console output of the IDE.
The temp files are unreadable because of lto - lto-supporting intermediate
files are not human readable. That's the price you pay for binaries that
are 10-20% smaller and those compile/linktime functions like
__builtin_constant_p that we make heavy use of.
…____________
Spence Konde
Azzy’S Electronics
New products! Check them out at tindie.com/stores/DrAzzy
GitHub: github.com/SpenceKonde
ATTinyCore: Arduino support for almost every ATTiny microcontroller
Contact: ***@***.***
On Thu, Jun 1, 2023, 06:24 robmaxtech ***@***.***> wrote:
Hello,
I'm struggling to generate an assembly listing to look a bin in-depth
what's giong on (especially what happens in a timer interrupt - the
prologue and epilogue seems to be too long, way more than the numbers
mentioned in Ref_Interrupts.md)
The core offers "Sketch -> Export compiled binary" within the Arduino IDE,
but how to do this in VS Code / platform.io?
I tried
build_type = debug
build_flags = -save-temps
but the .s files look like this:
.ascii "\357\375\030\026\306\300\002\35428\003\321\370\3530p\236\276"
.ascii "\261\232b\253\265PU7\252\036U5F\323e8\r1p\n(\370,X\265\200/."
.ascii "|p \022\305\2629\352\216s\245\027\256\357\024\365aV\233}a\316"
......
Thanks a lot for any hint!
—
Reply to this email directly, view it on GitHub
<#964>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTXEW3YKSEZQPQZPWIRLFTXJBUUNANCNFSM6AAAAAAYWWOJEA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
robmaxtech
-
Is this something that should be added to the platformio docs?
…On Fri, Jun 2, 2023 at 5:44 AM robmaxtech ***@***.***> wrote:
Brilliant! Works like a charm! Thanks a lot for the explanations! Your
work is pure gold, really.
—
Reply to this email directly, view it on GitHub
<#964 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTXEW3AEZXSP7OW6YSSHWLXJGYWZANCNFSM6AAAAAAYWWOJEA>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
--
____________
Spence Konde
Azzy’S Electronics
New products! Check them out at tindie.com/stores/DrAzzy
GitHub: github.com/SpenceKonde
ATTinyCore <https://github.com/SpenceKonde/ATTinyCore>: Arduino support for
all pre-2016 tinyAVR with >2k flash!
megaTinyCore <https://github.com/SpenceKonde/megaTinyCore>: Arduino support
for all post-2016 tinyAVR parts!
DxCore <https://github.com/SpenceKonde/DxCore>: Arduino support for the AVR
Dx-series parts, the latest and greatest from Microchip!
Contact: ***@***.***
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm struggling to generate an assembly listing to look a bit in-depth what's giong on (especially what happens in a timer interrupt - the prologue and epilogue seems to be too long, way more than the numbers mentioned in Ref_Interrupts.md)
The core offers "Sketch -> Export compiled binary" within the Arduino IDE, but how to do this in VS Code / platform.io?
I tried
build_type = debug
build_flags = -save-temps
but the .s files look like this:
.ascii "\357\375\030\026\306\300\002\35428\003\321\370\3530p\236\276"
.ascii "\261\232b\253\265PU7\252\036U5F\323e8\r1p\n(\370,X\265\200/."
.ascii "|p \022\305\2629\352\216s\245\027\256\357\024\365aV\233}a\316"
......
Thanks a lot for any hint!
Beta Was this translation helpful? Give feedback.
All reactions