issue-#207 Compiler TRAPs with simple CONST expression

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

Postby luowy » Mon Jun 08, 2020 4:56 am

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.
luowy
 
Posts: 226
Joined: Mon Oct 20, 2014 12:52 pm

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

Postby Josef Templ » Mon Jun 08, 2020 6:53 pm

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/projects/blackbox/repository/diff?utf8=%E2%9C%93&rev=96b3e9ff065459964df3fbadf0b9c0658d752207&rev_to=ed51fd6cd63dd207ebc146fd564d5178967d468b

- Josef
User avatar
Josef Templ
 
Posts: 2038
Joined: Tue Sep 17, 2013 6:50 am

Previous

Return to Resolved (Bugs)

Who is online

Users browsing this forum: No registered users and 1 guest

cron