简体   繁体   English

Raspberry Pi上的Windows 10可以编译代码吗?

[英]Can Windows 10 on Raspberry Pi Compile Code?

I know I can make a CPP or C# or any other "universal app" and deploy it to Windows 10 on Raspberry Pi, but can the Raspberry Pi running Windows compile code? 我知道我可以制作CPP或C#或任何其他“通用应用程序”并将其部署到Raspberry Pi上的Windows 10,但是运行Windows的Raspberry Pi可以编译代码吗? If not, why not? 如果没有,为什么不呢?

The official Windows IoT FAQ says that Win32 console applications will run (but without a console display). 正式的Windows IoT常见问题解答说,Win32控制台应用程序将运行(但没有控制台显示)。

Therefore you can take any compiler that comes with source code and runs on Win32, compile it as a Win32 console app for the ARMv6 processor architecture, and deploy it on the Pi. 因此,您可以使用源代码附带的任何在Win32上运行的编译器,将其编译为用于ARMv6处理器体系结构的Win32控制台应用程序,然后将其部署在Pi上。 I guess you should also create a "universal app" as a UI to allow you to specify source filenames and command-line options. 我想您还应该创建一个“通用应用程序”作为UI,以允许您指定源文件名和命令行选项。

Of course, the result will be in the binary format that compiler is programmed to produce. 当然,结果将采用编译器编程生成的二进制格式。 I don't know of any C++ compiler that produces PE format files for ARMv6 and also has source code available. 我不知道会为ARMv6生成PE格式文件的C ++编译器,并且也提供源代码。

On the other hand, Mono compiles C# into PE format pure-MSIL ("AnyCPU") executables, which should be fine. 另一方面,Mono将C#编译为PE格式的纯MSIL(“ AnyCPU”)可执行文件,应该没问题。 And you can run those with either Microsoft's .NET or Mono, although not all desktop .NET functionality is supported. 尽管不是所有桌面.NET功能都受支持,但是您可以使用Microsoft .NET或Mono运行它们。

Eventually, you might be able to get the MonoDevelop IDE working, like people have done on Raspbian 最终,您可能能够使MonoDevelop IDE正常工作, 就像人们在Raspbian上所做的一样

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM