0

Can we run a program written in visual studio c++ (windows), with or without the rasp-bian OS? Any guidance about how it will be done? What software will be needed?

  • Don't ask "Can we..." because in theory, sure we can. You might need a compiler to make Linux binaries (not sure if that exists, if not you can write your own). You might be able to just import the C++ into a compiler on the RPi. There are several solutions so yes we can. Question is, is it practical? It is much simpler to just write in a tool designed for the RPi. The fact that something can be done doesn't mean it's practical or a good idea. – Bimpelrekkie Sep 11 at 7:09
0

It really comes down to architecture and how your code is written.

Your question is not very precise. Do you want to run C++ on raspbian? Or do you want to actually use the raspberry Pi as uC?

If the first option is the case:
Just try to compile the source code on the Raspberry Pi. If the code was written with arm architecture in mind sure you can compile and run it. If not it might or might not work.

If the second option is the case:
In theory you can use it like a uC and code ur own behaviour into it but tbh I would not recommend it. Just use an embedded Linux distro if u want a uC behaviour or if u want to be more professional build a embedded Linux distro that fits your need precisely.

  • We have to do the performance analysis of visual studio project, so i guess the first case would work. – Security Geek Sep 11 at 10:55
  • This won't work, because pretty sure the C++ code you are analyzing has heavy dependencies on MS-Windows libraries. Without modifications you can only run it on MS-Windows. And no, Windows IoT can't run unmodified MS-Windows applications either. – Janka Sep 11 at 11:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.