Qbasicnews.com

Full Version: FB Source size limit
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
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....
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...
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)
Look in the asm file, where does it fail? Could be some weird thing making FB hard die.
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.
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.
Quote:Nathan: I guess you did´nt had a single file.

Yes, I mean a 115 Kb .BAS file.
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$ ?
I found what's wrong:
INPUT must have a prompt:
Code:
INPUT "",Inputs$
works, and
Code:
INPUT Inputs$
fails
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.
Pages: 1 2 3