This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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: Q for inline arm assembly: 'M' constraint?


Richard Earnshaw wrote:

Not entirely sure. Which compiler release and what optimization level are you using?

$ arm-elf-gcc -v
Reading specs from /usr/local/lib/gcc-lib/arm-elf/3.3/specs
Configured with: ../gcc-3.3-core/configure --target=arm-elf --prefix=/usr/local --enable-languages=c --with-local-prefix=/usr/local/arm-elf --without-headers --with-newlib --disable-shared
Thread model: single
gcc version 3.3


Also, I was using -O0, then tried -O1 per your suggestion on the code you submitted, but it still used registers.

With a simple testcase I tried I got:

<snip>


with -O1 on the current development version of the compiler.

I was not able to reproduce this, although my "const char n = 8; const char m = 32 - n;" version compiled with warnings once I made it static, for some reason.



-- Bryce Schober Design Engineer Dynon Avionics, Inc. www.dynonavionics.com

---
[This E-mail scanned for viruses by digiposs.com]


------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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