Arithmetische Umformungen

Gleiche Funktion add jetzt mit gcc -S -O6, betrachte innere Schleife:

.LL11:
        ld      [%i3+%i5], %g2
        add     %i4, 1, %i4
        ld      [%i3+%i0], %g3
        cmp     %i4, 99
        add     %g2, %g3, %g2
        st      %g2, [%i3+%g1]
        ble     .LL11
        add     %i3, 4, %i3       -- Index weiterzählen



Johannes Waldmann 2005-01-28