Page 2 of 2

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

Posted: Mon Jun 08, 2020 4:56 am
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.

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

Posted: Mon Jun 08, 2020 6:53 pm
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