VS Arduino
Visual Micro >> Visual Studio 2017, 2019, 2022 >> Show assembly code with VM in VS2019
https://www.visualmicro.com/forums/YaBB.pl?num=1567689535

Message started by Harrzack on Sep 5th, 2019 at 1:18pm

Title: Show assembly code with VM in VS2019
Post by Harrzack on Sep 5th, 2019 at 1: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.

Title: Re: Show assembly code with VM in VS2019
Post by Visual Micro on Sep 5th, 2019 at 1: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

Title: Re: Show assembly code with VM in VS2019
Post by Harrzack on Sep 5th, 2019 at 2: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...

Title: Re: Show assembly code with VM in VS2019
Post by Visual Micro on Sep 5th, 2019 at 2:37pm
Yes I have a teensy4 and tweeted it a couple weeks ago. Very good. let me know if it has a disassembly .exe

Title: Re: Show assembly code with VM in VS2019
Post by Harrzack on Sep 5th, 2019 at 3: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.

Title: Re: Show assembly code with VM in VS2019
Post by Visual Micro on Sep 5th, 2019 at 3:11pm
There should be an output window that shows the disassembly. Switch from Micro Build to Micro Assembly.

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.