支持 gfortran 的 Codesourcery?
有人成功地将 gfortran 添加到 Codesourcery lite 中以进行 ARM 构建吗?如果不是,您如何使用 f2c 正确解决此问题,以使用 codesourcery 编译 fortran 代码?
Has anyone successfully added gfortran to a Codesourcery lite for ARM build? If not how do you properly work around this with f2c to compile fortran code with codesourcery?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
CodeSourcery 工具附带一个文件,其中显示了用于构建它们的命令。它不完全是一个构建脚本——您实际上只能将其用作参考——但如果您足够努力,您应该能够使用 Fortran 支持重建编译器。
显然,CodeSourcery 不会对 Fortran 进行太多测试,所以如果它因某种原因被破坏,你就得靠自己了。
如果您的目标是 ARMv7-A,您可能会发现 Linaro 编译器更有效:
http://releases.linaro.org/12.02/components/toolchain/binaries/
当然,Linaro 也有特定的 Android 工具。
The CodeSourcery tools come with a file that shows the commands used to build them. It's not exactly a build script -- you can really only use it for reference -- but you should be able to rebuild the compiler with Fortran support if you try hard enough.
Obviously, CodeSourcery won't have tested Fortran much, so if it is broken somehow, you're on your own.
If you're targeting ARMv7-A, you might find the Linaro compilers more effective:
http://releases.linaro.org/12.02/components/toolchain/binaries/
Linaro also have specific Android tools, of course.