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 Mixing C and Assembly (Read 780 times)
Apostel13
Newbies
*
Offline


Posts: 1
Joined: Jun 11th, 2020
Mixing C and Assembly
Jun 11th, 2020 at 5:16pm
Print Post  
In VS7 it is simple to mix C and assembly. But it seems it is not possible to do it in a Visual Micro Arduino project. However I add an assembly file  to a project it seems the .s file is ignored by the build procedure. Has anybody an idea how I have to proceed to make it happen?

Best regards
George
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: Mixing C and Assembly
Reply #1 - Jun 12th, 2020 at 11:30am
Print Post  
It should be possible, and as in the Arduino IDE, the extension should be ".S" to be included (lowercase s doesn't work).  You may need to remove the file from the solution to change the extension, then re-add it.

An example project is below, for an Arduino UNO using an .S file included in the main INO code, which builds OK.

https://www.visualmicro.com/downloads/AssemblerTest.zip

Hopefully that helps?
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint