Games Re-compiling

STOS-related stuff in here please
Post Reply
User avatar
Marcer
Atarilegend
Atarilegend
Posts: 4505
Joined: Wed Mar 10, 2004 6:21 pm
Location: sweden

Games Re-compiling

Post by Marcer »

Hi

I have just Compiled couple of games with compiler 2.7. and Funny thing is. many of the games seems to run in 1 vbl. or atleast faster than they previous did.
But there is some titles that the Compiler refuses. and im not a STOS hacker, so is there anybody out there who can help me out.

common error I get is : Non declared array in line 60

it runs fine in STOS basic.
the line is:
60 if A<1 then goto SLUT else gosub BANA(A) : inc LF

any ideas?
- Atari ST/FM/E - Mega sTe - Portfolio - Falcon 030 FX 3 in 1 -- Atari 7800/Lynx/Jaguar -
- FTP... Ask for info
- Atari Legend (Games all-a-round)
- Paradize (Chip Music)
- Elite (Atari Softs)
- The Legion (Demos)
- Alive Maggie Team
_/|\_YM-RockerZ_/|\_
User avatar
MiggyMog
Atari Super Hero
Atari Super Hero
Posts: 989
Joined: Sun Oct 30, 2005 4:43 pm
Location: Scotland

Re: Games Re-compiling

Post by MiggyMog »

It may be worthwhile posting the BAS file(s)? Too many possibilities Otherwise but It may be automatically declaring the array in interpreted mode but not in compiled? Or maybe an extension is broken in the compiled verson?
('< o o o o |''| STM,2xSTFM,2xSTE+HD,C-Lab Falcon MK2+HD,Satandisk,Ultrasatandisk,Ethernat.
mlynn1974
Atari Super Hero
Atari Super Hero
Posts: 764
Joined: Mon Mar 03, 2008 10:33 pm
Contact:

Re: Games Re-compiling

Post by mlynn1974 »

STOS 2.6 with Compiler version 2.7 doesn't seem to support forward declarations.
That is: the compiler will throw an error if an array is used but declared in a later line number even if the array is initialised error by using a goto\gosub. I don't know about writing compilers, but this seems like quite an advanced thing to do and if it doesn't work in 2.7 it is unlikely it would work in previous versions.

When I used STOS a lot I didn't know what forward declarations were.
Billy Allan discovered a few problems with the compiler when he was writing The Missing Link, but I don't think that was one of them.
Still got, still working: Atari 4Mb STe, MegaST 2, 520STFM (x2), 2.5Mb STF, Atari 2600JR, Flashback 8 Gold.
Hardware: PC720B, Cumana CSA 354, Ultimate Ripper, Discovery Cartridge, Blitz Turbo, Synchro Express II (US and UK Versions).
Post Reply

Return to “STOS”