Re: PRE_DEC, POST_INC, how to ?

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

 



Florent DEFAY <spira.inhabitant@xxxxxxxxx> writes:

> Then I sometimes get valid code like:
> move r1,-(r0)
> move r1,-2(r0)
> move r2,r0
>
> But only with optimization options.

Auto-increment/decrement addressing is only introduced when optimizing.

> Moreover, the previous example would be better coded with:
> move r1,-(r0)
> move r1,-(r0)
> move r2,r0

Yeah, the auto-increment/decrement optimizations aren't all that good in
gcc, because they don't much matter for most popular processors.  The
place to start looking is auto-inc-dec.c.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux