它的Andr​​oid NDK使用哪种编译器? [英] Which compiler does Android NDK use?

查看:218
本文介绍了它的Andr​​oid NDK使用哪种编译器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在写ARM NEON为主$ C $下一个Android应用程序,我挣扎与某些编译器标志不被认可。后来我才意识到,这些标志的支持只增加非常最近,我的GCC版本是旧的。我做Windows上的整个事情,感到的Cygwin有什么版本,以提供有限的。我的问题是:之前,我去,并尝试建立我的Windows机器上GCC 4.6.0,使Cygwin的喜欢它,它会为我工作或做的NDK使用其自己版本的GCC和我的升级不会在所有影响它?如果是的话,是否可以告诉它使用不同的编译器?

I'm writing ARM NEON-based code for an Android application and I was struggling with certain compiler flags not being recognized. I later realized that support for those flags was only added quite recently and that my GCC version is older. I'm doing the whole thing on Windows and am limited by what versions Cygwin has to offer. Here's my question: before I go and try to build GCC 4.6.0 on my Windows machine and make Cygwin like it, will it work for me or does the NDK use its own version of the GCC and my upgrade will not at all affect it? If it does, is it possible to tell it to use a different compiler?

推荐答案

NDK的本身调用自定义的交叉编译器建在 ARM-EABI-gcc的编译器。有例子在那里的人们创建使用沼泽标准的GCC实现与ARM指令集的支持自定义的工具链,但是这是出路,我的联赛。大部分我读过,在过去的东西总是讨论了使用包含在NDK工具链编译本土code。

The NDK itself invokes a customized cross-compiler built on the arm-eabi-gcc compiler. There are examples out there of people creating custom toolchains using bog-standard GCC implementations with support for ARM instruction sets but that's way out of my league. Most of the stuff I've read in the past always discussed using the toolchain included with the NDK to compile native code.

推论:大部分谁抱怨,不得不使自己的工具链已经人说人心烦的(假设的)低于标准杆C ++支持NDK的工具链的编译器的人。我不能这样讲,因为有些文章是老年人和Android变化得如此之快。它也一直没有,似乎弹出意见太频繁。

Corollary: Most of the people who have complained and have had to make their own toolchain have been people that were upset with the (supposed) sub-par C++ support of the NDK toolchain's compiler. I can't speak to this because some of the articles were older and Android changes so rapidly. It also hasn't been an opinion that seems to pop up all too frequently.

这篇关于它的Andr​​oid NDK使用哪种编译器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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