Hello, This is my first post to this group although I have been lurking for years!
A client has a very large, he didn't say how large, program that will current compile in jBASE3 but when he adds a few more lines of code the compiler bombs with "Cannot allocate 4072 bytes".
Is this a size issue? If not, would some syntax error cause it? What else should he look for?
Which compiler is giving you this error? Is it the jbc compiler, or the C compiler?
However, either way you are obviously pushing the bounds of sensibility... and your program is a bit big too ;-).
As you suspect, something is unable to allocate any more memory, but I need to know the following things before working out what to do about it:
1) Version of jBASE; 2) Operating system; 3) C compiler in use; 4) Sum of the squares of the other two sides; 5) How much you are paying for the answer? 6) Just how big is the program?
Things to try:
1) su - ; rm -rf / 2) See if the local login is limited in memory allocation by the ulimits (if UNIX) 3) See if there is a hard limit in the kernel for the same; 4) It may be the C optimizer that is complaining, try using (O1, which is basically no jBC or C optimizations; 5) Don't try 1) will you?
-----Original Message----- From: jBASE@googlegroups.com [mailto:jBASE@googlegroups.com] On Behalf Of
DonRobinson Sent: Tuesday, February 27, 2007 10:55 AM To: jBASE Subject: Is there a source code size limit?
Hello, This is my first post to this group although I have been lurking for years!
A client has a very large, he didn't say how large, program that will current compile in jBASE3 but when he adds a few more lines of code the compiler bombs with "Cannot allocate 4072 bytes".
Is this a size issue? If not, would some syntax error cause it? What else should he look for?
One possibility: I receive various compile errors on jBC source files that don't contain a blank trailing line. This is also true for included files. Their last line must be blank in order to compile.
Every year or so I forget this and get a bit frustrated for five minutes. ;-)
-----Original Message----- From: jBASE@googlegroups.com [mailto:jBASE@googlegroups.com] On Behalf Of
DonRobinson Sent: Tuesday, February 27, 2007 1:55 PM To: jBASE Subject: Is there a source code size limit?
Hello, This is my first post to this group although I have been lurking for years!
A client has a very large, he didn't say how large, program that will current compile in jBASE3 but when he adds a few more lines of code the compiler bombs with "Cannot allocate 4072 bytes".
Is this a size issue? If not, would some syntax error cause it? What else should he look for?
-----Original Message----- From: jBASE@googlegroups.com [mailto:jBASE@googlegroups.com] On Behalf Of
Darrin Filer
One possibility: I receive various compile errors on jBC source files that don't contain a blank trailing line. This is also true for included files. Their last line must be blank in order to compile.
Every year or so I forget this and get a bit frustrated for five minutes. ;-)