Thanks a lot, that makes indeed sense.
The peep hole optimizer is not used for asm files shipped with sdcc, right?
So I guess I can freely decide whether I wanna use in/out (asgb style)
or ldh (rgbds/gbdk style), since currently those could only be
introduced by peep hole rules when "ld hl, #0xff%1; ld (hl), a" or
similar gets used in some situations.
And that’s only possible without notUsed().
On 27.05.20 10:30, Philipp Klaus Krause wrote:
Am 27.05.20 um 09:23 schrieb Sebastian Riedel:
Hi, another question regarding the peep hole optimizer.
How does it handle aliases?
SDCC should emit only one of the variants. That is the variant then used
in the peephole optimizer. The other variant thus will occur only in
hand-written asm, which usually doesn't need the peephole optimizer anyway.
--
Freundliche Grüße / Yours sincerely
Sebastian Riedel
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user