Closed PropGit closed 8 years ago
-u
seems to be responsible for the second listing of all "objects" and therefore for the second "Done." too.
(yeti@aurora:2)~/wrk/propeller/spinsim$ cat main.spin
pub main
(yeti@aurora:2)~/wrk/propeller/spinsim$ /opt/openspin/bin/openspin main.spin
Propeller Spin/PASM Compiler 'OpenSpin' (c)2012-2016 Parallax Inc. DBA Parallax Semiconductor.
Version 1.00.78 Compiled on Jan 17 2016 04:10:42
Compiling...
main.spin
Done.
Program size is 28 bytes
(yeti@aurora:2)~/wrk/propeller/spinsim$ /opt/openspin/bin/openspin main.spin -u
Propeller Spin/PASM Compiler 'OpenSpin' (c)2012-2016 Parallax Inc. DBA Parallax Semiconductor.
Version 1.00.78 Compiled on Jan 17 2016 04:10:42
Compiling...
main.spin
Done.
Done.
Program size is 28 bytes
Yes, when you use -u it compiles the whole project twice. The first time it gathers information and then it determines what can be removed, then if compiles it a second time excluding methods/objects that it determined could be removed. This results in the double Done. message (and repeating most of the subobjects).
The crash is in the old version, and it was fixed already (I know what it was).
Thanks @drawkula and @reltham. That makes perfect sense! All is well.
Source Files:
Here's a Lamestation piXel game folder I modified to contain all the files in one place: piXel.zip I don't know if my modification has anything to do with the behavior listed below.
Problem
On my Win 7 64-bit host, compiling piXel.spin with OpenSpin v1.0.77 ends with a "Done." message and then a Windows System crash message:
There is no .binary produced by this action.
Using OpenSpin v1.0.78 instead seems to work better (no crash message) but the output is strange in that it reports "Done." twice. It does indeed produce a .binary file in this case.