Re: IMCC puzzle

2002-12-06 Thread Leopold Toetsch
[EMAIL PROTECTED] wrote: Leo -- Here is a simple Jako test program, which exercises the assignment syntax: Here it is compiled to IMC: [ Q/A intersparsed in imcc code for clearness ] .sub __MODULE__ .local int a # var int a;

Re: IMCC puzzle

2002-12-06 Thread Leopold Toetsch
Aaron Sherman wrote: On Fri, 2002-12-06 at 10:40, [EMAIL PROTECTED] wrote: Looks like the first stages of constant-folding to me, no? No, but constant folding is done anyway. Both "3.14" are one constant loation. The constant folding may simply not deal with integers yet No, integ

Re: IMCC puzzle

2002-12-06 Thread Aaron Sherman
On Fri, 2002-12-06 at 10:40, [EMAIL PROTECTED] wrote: > set N0, 3.14 > set N0, 3.14 > set N0, 3.14 > I don't understand how d and e both become N0, nor how both f and g become > S0. a, b, and c all seem to get their own registers. Is there some >

IMCC puzzle

2002-12-06 Thread gregor
Leo -- Here is a simple Jako test program, which exercises the assignment syntax: var int a, b, c; var num d, e; var str f, g; a = 5; a = b = c = 5; d = 3.14; d = e = 3.14; f = "Howdy"; f = g = "Howdy"; a = b; a = b = c; Here it is compiled to IMC: .sub __MODULE__