Ultimate Amiga

Network Boards => AMOS Language Discussion => AMOS Factory => AMOS Professional Forum => Topic started by: xboxisfinished on February 08, 2016, 10:27:13 PM

Title: Unable to compile. Compiler freezes.
Post by: xboxisfinished on February 08, 2016, 10:27:13 PM
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.
Title: Re: Unable to compile. Compiler freezes.
Post by: SamuraiCrow on February 09, 2016, 10:35:45 AM
The compiler has known bugs.  They have been cataloged on AmigaCoding.com and elsewhere.
Title: Re: Unable to compile. Compiler freezes.
Post by: Hungry Horace on February 10, 2016, 06:53:13 PM
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.
Title: Re: Unable to compile. Compiler freezes.
Post by: bruceuncle on February 11, 2016, 12:36:49 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...
Title: Re: Unable to compile. Compiler freezes.
Post by: xboxisfinished on February 13, 2016, 01:57:55 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