Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Show assembly code with VM in VS2019 (Read 1659 times)
Harrzack
Member
***
Offline


Posts: 133
Location: Lindenwold, NJ USA
Joined: Dec 28th, 2012
Show assembly code with VM in VS2019
Sep 5th, 2019 at 1:18pm
Print Post  
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
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Show assembly code with VM in VS2019
Reply #1 - Sep 5th, 2019 at 1:36pm
Print Post  
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
Location: Lindenwold, NJ USA
Joined: Dec 28th, 2012
Re: Show assembly code with VM in VS2019
Reply #2 - Sep 5th, 2019 at 2:07pm
Print Post  
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
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Show assembly code with VM in VS2019
Reply #3 - Sep 5th, 2019 at 2:37pm
Print Post  
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
Location: Lindenwold, NJ USA
Joined: Dec 28th, 2012
Re: Show assembly code with VM in VS2019
Reply #4 - Sep 5th, 2019 at 3:06pm
Print Post  
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
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Show assembly code with VM in VS2019
Reply #5 - Sep 5th, 2019 at 3:11pm
Print Post  
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 TopicPrint