Yes, gcc will call as for .S files.
> is it possible to compile ARM ADS assembly code with the NDK?
>
> Or does it have to be converted into GCC format?
It's standard binutils. Whatever gas accepts, it should be the same for the ndk.
>
>
> On Sep 26, 1:56 pm, Russell <rtill...@gmail.com> wrote:
>> The NDK toolchain is not correctly recognizing *.S files as assembly
>> files, and so it is failing.
>>
>> When I execute the ndk-build V=1, it shows it is executing "arm-eabi-
>> gcc" for both the *.c and *.S files.
>>
>> As a consequence, it reports "Error: bad instruction" for every line
>> of the *.S file.
>>
>> It should instead be executing arm-eabi-as, ie GAS.
>
> --
> You received this message because you are subscribed to the Google Groups "android-ndk" group.
> To post to this group, send email to andro...@googlegroups.com.
> To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
>
>
the problem may be that the assembly is in ARM ADS format, rather than
GCC format.
is it possible to compile ARM ADS assembly code with the NDK?
Or does it have to be converted into GCC format?
On Sep 26, 1:56 pm, Russell <rtill...@gmail.com> wrote:
> The NDK toolchain is not correctly recognizing *.S files as assembly
> files, and so it is failing.
>
> When I execute the ndk-build V=1, it shows it is executing "arm-eabi-
> gcc" for both the *.c and *.S files.
>
> As a consequence, it reports "Error: bad instruction" for every line
> of the *.S file.
>
> It should instead be executing arm-eabi-as, ie GAS.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.