Re: enabling "thumb" option in gcc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



AJosephAntony@xxxxxxxxxxxxxx wrote:
Hi,

I don't know if this is the right place to ask.
This is not it. Most probably the right place to ask is gcc-help@xxxxxxxxxxx

I was trying to enable the "thumb" option for gcc. I just tried to compile
a helloworld.c file with the "-mthumb" option.
gcc said that "unknown option: thumb".

Just to make sure, who said that: gcc or arm-elf-gcc ? :)

So, I enabled

MULTILIB_OPTIONS    += mcpu=arm7
MULTILIB_DIRNAMES   += nofmult
MULTILIB_EXCEPTIONS += *mthumb*/*mcpu=arm7*

This is irrelevant to the existance of the -mthumb option.

 in "gcc/config/arm/t-arm-elf" file, configured gcc, re-installed it. but,
could not enable the "-mthumb" option although gcc seems to work fine. I
installed
gcc-3.4.2. arm-elf-gcc version 2.95.3 20010315 with the coldfire patches is
also installed.

I do not remember exactly when, but at one point ARM and THUMB were separate compilers, i.e. you might well need thumb-elf-gcc 2.95.x. In >= 3.x.x series they are one compiler and the THUMB code generation is selected with -mthumb.


~velco

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux