issue-#207 Compiler TRAPs with simple CONST expression

luowy
Posts: 234
Joined: Mon Oct 20, 2014 12:52 pm

Re: issue-#207 Compiler TRAPs with simple CONST expression

Post by luowy »

in a squence code block
a1: record last item which AX loaded from ;
a2: record last item which AX stroed to;
a1,a2 used for elimating redundant code of moving to or from AX;
detail can be found in DevCPL486.GenMov;

if current code action changed AX, it should reset a1,a2;
but your fix code do not produce code at all, so no need worry about it, I think.
User avatar
Josef Templ
Posts: 2047
Joined: Tue Sep 17, 2013 6:50 am

Re: issue-#207 Compiler TRAPs with simple CONST expression

Post by Josef Templ »

luowy, thanks for the explanation of the a1/a2 cache mechanism for the AX register value. I didn't know about that so far.

I have pushed the changes to branch issue-#207.

The diff is here: https://redmine.blackboxframework.org/p ... 78967d468b

- Josef
Post Reply