C++在移动应用程序中。它是如何运作的
告诉我。
如何在手机中执行二进制文件(以 C++ 编写)?
是否只能与 J2ME 混合,或者是否可以执行“RAW”(如 exe 文件)二进制文件。
(在新旧手机中)
Tell me.
How is executed binaries (written in c++ ForExample) in mobiles??
Is it only possible as mixed with J2ME or is it possible to execute "RAW" (like exe file) binary.
(In old and new mobiles)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我认为这取决于移动设备的操作系统。例如,如果是 Windows Mobile 5/6,则可以使用使用 Windows CE SDK 编译的 .exe 文件。
I think it depends on the operating system of the mobile device. For example, if its Windows Mobile 5/6 they can use .exe files compiled with the Windows CE SDK.
在手机上运行程序就像在普通计算机上运行一样。
您必须考虑两件事:运行手机的处理器和在处理器上运行的操作系统。
Running a program on a mobile phone is like running it on a normal computer.
You have to take two things into consideration the processor that is running the phone and the OS that is running on top of the processor.
有两种方法。
首先,应用程序可以由本机可执行指令组成。在基于 Windows CE 的移动电话(例如 Windows Mobile/phone)中,这意味着 PE 格式,编译和链接到的本机 C 和 C++ 代码。
其次,应用程序可以由运行时环境管理,例如 Windows CE/Mobile/Phone 上用于 Java 的 J2ME 和用于 .Net CF 的 CLR。然后运行时环境执行PE,上面的应用程序层,例如.Net CF,被编译为中间语言,该中间语言在运行时被编译为PE(“jitted”)。
There are two ways.
First, the application can consist of natively executable instructions. In a Windows CE based mobile phone, like Windows Mobile/phone, this means the PE format, which native C and C++ code is compiled and linked to.
Second, the application can be managed by a runtime environment, like J2ME for Java and the CLR for .Net CF on Windows CE/Mobile/Phone. Then the runtime environment executes PE and the application layer above, e.g., .Net CF is compiled to an intermediate language that is compiled to PE during runtime ("jitted").
常见的 Windows .exe 不太可能在移动设备上开箱即用。
目标手机必须有特定的 SDK,这将有助于将 C 代码编译为本机平台代码。
或者,如果移动设备具有通用操作系统,例如 Symbian 或 Windows mobile,那么您需要适用于这些目标平台的 SDK 和编译器。
Common Windows .exe are unlikely to run on mobiles out-of-the box.
The target mobile has to have a specific SDK, which will help compiling C code into native platform code.
Or, if the mobile has a common operating system, like Symbian or Windows mobile, then you need SDK and compilers for these target platforms.