Page 1 of 1
[Z88dk-users] Is either SCCZ80 or ZSDCC single-pass or multi-pass?
Posted: Tue Dec 25, 2018 8:03 pm
by Fabrizio
Is either SCCZ80 or ZSDCC one-pass or multi-pass?
For example, can any ot these compilers efficiently optimize code with GOTO's to a backward label?
Posted: Fri Dec 28, 2018 5:31 am
by alvin
Is either SCCZ80 or ZSDCC one-pass or multi-pass?
For example, can any ot these compilers efficiently optimize code with GOTO's to a backward label?
I'm pretty sure this makes no difference to zsdcc. It contains GOTO in its intermediate code and uses it for things other than the C statement.
Posted: Sun Dec 30, 2018 11:55 pm
by Fabrizio
Even a single pass could manage a backward GOTO with some tricks.
But is ZSDCC single-pass? and SCCZ80?
Is either SCCZ80 or ZSDCC one-pass or multi-pass?
For example, can any ot these compilers efficiently optimize code with GOTO's to a backward label?
I'm pretty sure this makes no difference to zsdcc. It contains GOTO in its intermediate code and uses it for things other than the C statement.