Re: [Sdcc-user] Peep hole optimizer and asm aliases

2020-05-28 Thread Sebastian Riedel
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, #0xf

Re: [Sdcc-user] Peep hole optimizer and asm aliases

2020-05-27 Thread Philipp Klaus Krause
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,

Re: [Sdcc-user] Peep hole optimizer and asm aliases

2020-05-27 Thread Sergey Belyashov
Hi, Imho, it is better to add two pair rules which converts (hl+/-) to ldi/ldd. And others use ldd/ldi only. ср, 27 мая 2020 г., 10:24 Sebastian Riedel : > Hi, another question regarding the peep hole optimizer. > > How does it handle aliases? > > Need there be doubled rules for ldd a,(hl)/ld a,(