03-18-2010, 05:49 PM
boriel Wrote:To be honest, I was also surprised the time it takes to compile in my machine: I have a 8Gb quad Core computer, and psyco installed (a python accelerator, to use JIT compilation whenever possible). It also took near 2 minutes. After tracing the problem, I found out it was not the compiler stage which was lasting so long, but the *assembling* one. That is: It's the assembler which is taking most of the time. I will check it later.
Commenting out most of your main file except the printlogo( ) call, resulted in a fast compilation. I guess the problem with slow compilation is related to your main .BAS module. A first workaround could be to compile all your defs in a single separate asm file (not .bas), with zxbasm file.asm and then use incbin to include the binary data in a single stepso you needn't to recompile the defb more than once.
I have noted that I can make a .asm file very quickly indeed (that's a workaround for test builds).
Is the assembler documented somewhere? I didn't know incbin was actually a valid command.
That might help a lot for some things like graphics and audio, which I was working very hard to turn into DEFB statements...