是否可以交叉编译已经编译的文件? ARM 皮质 M4
我正在开发一个项目,必须将 x86 架构的编译文件移植到具有 ARM Cortex M4 处理器的 STM32F401RE。
是否可以交叉编译已经编译的文件?我无权访问 C 代码,因为输出是由解析器给出的,该解析器直接将高级语言转换为可执行文件。
I'm working on a project where I have to port a compiled file for x86 architecture to a STM32F401RE, which has an ARM Cortex M4 processor.
Is it possible to cross-compile the already compiled file? I don't have access to the c code, since the output is given by a parser that directly translate the higher level language to the executable file.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想说这是不可能的。即使您以某种方式设法将所有 x86 指令转换为 ARM 指令。从更高级的语言为 x86 编译的可执行文件肯定依赖于操作系统来进行加载、内存访问、IO 等。在 Cortex M4 上不会有这样的操作系统。
I'm going to say it's not possible. Even if you somehow managed to translate all x86 instructions to ARM instructions. An executable compiled for x86 from a higher level language most definitely relies on an operating system for loading, memory access, IO etc. You will not have such an OS on a Cortex M4.