Main Menu

Unable to compile. Compiler freezes.

Started by xboxisfinished, 08 Feb, 2016, 11:27 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

xboxisfinished

There is a problem with the compiler. When I click compile to compile my game it reaches like 20% to 25% and stops there. I have to reboot the Amiga but it does not continue after that in compilation. I do not know what to do here. Any help will be greatly appreciate it.

Thanks in advance.

SamuraiCrow

The compiler has known bugs.  They have been cataloged on AmigaCoding.com and elsewhere.

Hungry Horace

total stops without reason are rare though.


Are you using a lot of ELSE IF statements?  There are a few things you can look into and change that should make it work OK.
Quote from: KillerGorillabecause winuae is made of code and your amiga is made of stuff


bruceuncle

Also, watch out for any recursive code.  The compiler seems to go into an infinite loop as it digs down through each level without realising it's the same code!  Until it runs out of stack or memory or both  :o .
Any AMOS code that's likely to produce branches of more than 32k will also fail.  Multiple ELSE IF statements are the usual cause, but large loops will also give problems.  Haven't looked too closely at the compiler yet...
Repeat after me ...  "The AMOS Pro architecture is complex but it is not complicated."

xboxisfinished

Quote from: bruceuncle on 11 Feb, 2016, 01:36 AM
Also, watch out for any recursive code.  The compiler seems to go into an infinite loop as it digs down through each level without realising it's the same code!  Until it runs out of stack or memory or both  :o .
Any AMOS code that's likely to produce branches of more than 32k will also fail.  Multiple ELSE IF statements are the usual cause, but large loops will also give problems.  Haven't looked too closely at the compiler yet...

Alright...that is...porting game to AmiBlitz