[Z88dk-users] Is either SCCZ80 or ZSDCC single-pass or multi-pass?

Bridge to the z88dk-users mailing list
Post Reply
Fabrizio
Member
Posts: 58
Joined: Tue Jul 11, 2017 9:28 pm

[Z88dk-users] Is either SCCZ80 or ZSDCC single-pass or multi-pass?

Post 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?
alvin
Well known member
Posts: 1872
Joined: Mon Jul 16, 2007 7:39 pm

Post 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.
Fabrizio
Member
Posts: 58
Joined: Tue Jul 11, 2017 9:28 pm

Post 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.
Post Reply