Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Show assembly code with VM in VS2019 (Read 256 times)
Harrzack
Member
***
Offline



Posts: 133
Lindenwold, NJ USA
Show assembly code with VM in VS2019
Sep 5th, 2019 at 2:18pm
 
Wondering if there is any way to see assembly code generated for Teensy/'Arduino' code in VS2019. Just looking at some c functions and interested in how efficient they are.
Back to top
 
WWW  
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10631
United Kingdom
Re: Show assembly code with VM in VS2019
Reply #1 - Sep 5th, 2019 at 2:36pm
 
there is an F4 project property to enable disassembly report after build. For arduino boards it should work but might not work for teensy, depending on the tool chain.

Each toolchain doesn't tell us the name of the .exe to run for the disassenbly so there is some guess work. if it doesn't work let us know the exe name and we can add for teendy
Back to top
 
WWW  
IP Logged
 
Harrzack
Member
***
Offline



Posts: 133
Lindenwold, NJ USA
Re: Show assembly code with VM in VS2019
Reply #2 - Sep 5th, 2019 at 3:07pm
 
Thanks Tim.  You may want to consider adding the new Teensy4.  This is a killer board - Cortex M7 - boat load of peripherals and runs at...drum roll...  600MHZ!   And only $20.  I'm thinking this may start making more appearances.

Will check your idea and report...
Back to top
 
WWW  
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10631
United Kingdom
Re: Show assembly code with VM in VS2019
Reply #3 - Sep 5th, 2019 at 3:37pm
 
Yes I have a teensy4 and tweeted it a couple weeks ago. Very good. let me know if it has a disassembly .exe
Back to top
 
WWW  
IP Logged
 
Harrzack
Member
***
Offline



Posts: 133
Lindenwold, NJ USA
Re: Show assembly code with VM in VS2019
Reply #4 - Sep 5th, 2019 at 4:06pm
 
Yowza!  A disassembly file is created!  Oddly it is saved in the project folder

../Release/xxprojname.Test.lst (a MASM listing)

along with:

../Release/xxprojname.Test.ino.lst (a MASM listing)

They look similar in Notepad++ - and do show all sorts of assembler code.  I was arguing that bit-manipulations with <<,>>,&... etc is less readable than using the functions bitClear(), bitSet()...etc  One reply said the funcs would be slower so want to look at the code for each.

It seems that Release folder has a ton of files you should/could get interested in.

=Alan R.
Back to top
 
WWW  
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10631
United Kingdom
Re: Show assembly code with VM in VS2019
Reply #5 - Sep 5th, 2019 at 4:11pm
 
There should be an output window that shows the disassembly. Switch from Micro Build to Micro Assembly.
Back to top
 
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print