Skip to content
Low-level programming · Higher-level thinking
Login Register
Forum / Bugs and Fixes

Deoptimization

A community discussion post from the original code:zIRON forum.

0CodErr member
Posts
201
Threads
37
Location
Unknown

Deoptimization

program RAW_IMAGE 'test';

#set bits 32;

gp_cx = -1;
gp_cx = -1 - 1;

Result:

00000000  B901000000        mov ecx,0x1
00000005  F7D9              neg ecx
00000007  B901000000        mov ecx,0x1
0000000C  F7D9              neg ecx
0000000E  83E901            sub ecx,byte +0x1

Replies

Colin admin
Posts
928
Threads
49
Location
Bulgaria

Partially corrected, need to add constant folding. Added to my todo list :)