从 Visual Studio 交叉编译 ARM7 代码 [英] Cross Compiling ARM7 code from visual studio

查看:38
本文介绍了从 Visual Studio 交叉编译 ARM7 代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以从visual studio (2008/2010) express 或professional 为ARM7 编译?如果是这样,是否可以指导我如何操作?我读过其他关于 Yagarto 工具链的文章.这一切如何融入图片?

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?

我在这个领域(c# 程序员)很新,所以任何指导都将不胜感激.我用来编译测试应用程序的最后一个 IDE 是 CodeWarrior.我在 VS 中编写代码并从 CodeWarrior 编译.不确定调试支持,但这是另一个主题.目前,我希望能够从 VS 编写和编译.

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.

谢谢.

推荐答案

Yagarto 只提供了为 win32 编译的 gcc,它与 VS 没有任何集成(但可以与 Eclipse IDE 一起使用).

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

从 VS 编译是可能的,但不是微不足道的.你有几个选项(注意,我自己没有测试过任何一个,我通常坚持从命令行制作").

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 项目".它是在 VS 中创建新项目时可用的选项之一.许多简单的项目可以用一个命令行编译,你可以使用这种类型的项目.
  2. 使用 MSBuild(在 VS2010 中可用).有人制作了帮手来构建MSBuild 中的 GCC 项目.我不知道它是否适用于 Yagarto.
  3. 有一个完整的 (?) 商业解决方案,称为 WinGDB.它们不仅提供编译,还提供从 VS 内部调试.
  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.

这篇关于从 Visual Studio 交叉编译 ARM7 代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆