This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ldreqd instruction in arm version 4?


> The ARM Architecture Reference Manual lists the  ldrd/strd instructions as
> part of the dsp enhanced instruction set
> available in arm architecture versions 5 and above. Hence an explicit
> switch of -march=armv4t shouldn't generate these instructions. Is there some way
> by which (other than -march) that I can use to generate arm version 4T
> instructions?

Two ways.

1)  Configure the compiler with --with-cpu=arm7tdmi (which is an armv4T 
processor).

2)  Add -mcpu=arm7tdmi to the compilation options (similar to 
-march=armv4t).

R.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]