Ultimate Amiga

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Unable to compile. Compiler freezes.  (Read 3318 times)

0 Members and 1 Guest are viewing this topic.

xboxisfinished

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 205
  • Generic Amiga User
    • gamemakermagazine.com
Unable to compile. Compiler freezes.
« 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.
Logged

SamuraiCrow

  • compile-time wierdo
  • Forum Mod
  • A1200
  • *****
  • Karma: 5
  • Offline Offline
  • Gender: Male
  • Posts: 946
  • Compile-time wierdo
Re: Unable to compile. Compiler freezes.
« Reply #1 on: February 09, 2016, 10:35:45 AM »

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

Hungry Horace

  • Amorphous Blue-Blob Man
  • Site Admin
  • A4000T
  • ******
  • Karma: 307
  • Offline Offline
  • Gender: Male
  • Posts: 3,364
  • Don't forget... Ameboid's need love too!
    • AUW
Re: Unable to compile. Compiler freezes.
« Reply #2 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.
Logged
Quote from: KillerGorilla
because winuae is made of code and your amiga is made of stuff

bruceuncle

  • AMOS Dev
  • A500
  • *****
  • Karma: 6
  • Offline Offline
  • Gender: Male
  • Posts: 425
  • WINUAE Amiga User
Re: Unable to compile. Compiler freezes.
« Reply #3 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...
Logged
Repeat after me ...  "The AMOS Pro architecture is complex but it is not complicated."

xboxisfinished

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 205
  • Generic Amiga User
    • gamemakermagazine.com
Re: Unable to compile. Compiler freezes.
« Reply #4 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
Logged
Pages: [1]   Go Up
 

TinyPortal 2.2.2 © 2005-2022