Programm zum Testen, welche Optimierungen im Compilat was bringen! 7-x& : x[0..7] 959 7 xor x& : x[0..7] 791 7-x% : x[0..7] 1052 7 xor x% : x[0..7] 887 leere schleife: & 52 leere schleife: % 66 7 XOR x& ist 18.52260198456% schneller als 7 - x& 7 XOR x% ist 16.5% schneller als 7 - x% x& Mod 8 : x>=0 4465 x& And 7 : x>=0 587 x% Mod 8 : x>=0 4421 x% And 7 : x>=0 661 leere schleife: & 34 leere schleife: % 46 x& And 7 ist 87.51974723539% schneller als x& Mod 8 x% And 7 ist 85.70777296558% schneller als x% Mod 8 x& Div 8 : x>=0 895 shr(x&,3) : x>=0 711 x% Div 8 : x>=0 969 shr(x%,3) : x>=0 784 leere schleife: & 34 leere schleife: % 46 Shr(x&,3) ist 21.37049941928% schneller als x& Div 8 Shr(x%,3) ist 19.78609625668% schneller als x% Div 8 vergleich: Zugriff/Zuweisung aus locale und globale vareablen! & global :228 & local :474 % global :318 % local :564 leere schleife: & 23 leere schleife: % 31 global & ist 54.54545454545% schneller als local & global % ist 45.47134935305% schneller als local %