Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FB Source size limit
#1
V1ctor:
I tried to compile the Minimax chess engine, source, that's a single file 110 Kb in size (it has a lot of comments)
The compiler creates an incomplete ASM file 232 Kb in size and ends without a warning. The termination code seems to be 128.

It would be good to have an error message.

I'm trying to erase the comments....
Antoni
Reply
#2
I don't think the file size is a problem, 'cause FB compiled our entry for the TAC 2004 and it goes above 115 Kb...
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#3
Nathan: I guess you did´nt had a single file . My problem is it is a single file, and a complicated program, so difficult to modularize.

The stripped version (all comments and blank lines off) don't work

It does'nt complain, simply it creates a partial ASM file and closes...

my command line is
fbc minimax.bas

I'm using V 0.06..

Check for yourself:

http://usuarios.lycos.es/antonigual/fb/minimax.rar

(Right click- Save as , it's Lycos)
Antoni
Reply
#4
Look in the asm file, where does it fail? Could be some weird thing making FB hard die.
Reply
#5
It's definitly not a size problem. I doubt the AST will be bigger then the actual file size. And 100 something kb is barely enough to fill the 4GB limit of a win32 application. It's a bug. I'll check it out.
oship me and i will give you lots of guurrls and beeea
Reply
#6
Ok found it. It crashes on line #2351 in the sub ReadPiece. If i comment INPUT Inputs$ it compiles fine. Btw v1ctor, how about some status so you know what's going on. I dunno wether it crashes or compiles until i check if there's any output.
oship me and i will give you lots of guurrls and beeea
Reply
#7
Quote:Nathan: I guess you did´nt had a single file.

Yes, I mean a 115 Kb .BAS file.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#8
Quote:Ok found it. It crashes on line #2351 in the sub ReadPiece. If i comment INPUT Inputs$ it compiles fine. Btw v1ctor, how about some status so you know what's going on. I dunno wether it crashes or compiles until i check if there's any output.

What's wrong with INPUT Inputs$ ?
Antoni
Reply
#9
I found what's wrong:
INPUT must have a prompt:
Code:
INPUT "",Inputs$
works, and
Code:
INPUT Inputs$
fails
Antoni
Reply
#10
Yeah, you can also do input , inputstr$.
It's probably passing input inputs$, 0 where it expected to get a string descriptor. Another bug for you v1ctor.
oship me and i will give you lots of guurrls and beeea
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)