Jaką optymalizację kodu mógłby wykonać generator kodu, tworząc program maszynowy reprezentujący instrukcje;
if (X=5) then (assing Z the value X + 2)
else (assing Z the value X + 4)
Jaką optymalizację kodu mógłby wykonać generator kodu, tworząc program maszynowy reprezentujący instrukcje;
if (X=5) then (assing Z the value X + 2)
else (assing Z the value X + 4)
Marcin Kowalenko napisał(a):
if (X=5) then (assing Z the value X + 2)
zależy jakie instrukcje wygenerowałby kompilator z tego operatora dupowania :D
A tak na poważnie możesz się pobawić różnymi kompilatorami tutaj