Cross Compiling ARM7 code from visual studio

2019-04-08 23:16发布

问题:

Is it possible to compile for ARM7 from visual studio (2008/2010) express or professional? If so, can I be directed as to how to do so? I've read from other posts about the Yagarto toolchain. How does it all fit into the picture?

I'm very green in this field (c# programmer) so any guidance will be very much appreciated. The last IDE I used to compile my test application was CodeWarrior. I write the code in VS and compile from CodeWarrior. Not sure of debug support but that is another topic. At the moment, I want to be able to write and compile from VS.

Thank you.

回答1:

Yagarto just provides gcc compiled for win32, it does not have any integration with VS (but does work with Eclipse IDE).

Compiling from VS is possible, but not trivial. You have several options (note, I have not tested any of them myself, I usually stick to "make" from command line).

  1. "Makefile project". It is one of the options available when creating a new project in VS. Many simple projects can be compiled with a single command line, and you can use this type of project for that.
  2. use MSBuild (available in VS2010). Someone made a helper to build GCC projects in MSBuild. I don't know if it will work with Yagarto.
  3. there is a complete(?) commercial solution called WinGDB. They provide not only compilation but also debugging from inside VS.