Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Archive » net.micro.pc » Is it Lattice or me???
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Is it Lattice or me??? [message #112720] Mon, 16 September 2013 13:50
greenber is currently offline  greenber
Messages: 54
Registered: June 2013
Karma: 0
Member
Message-ID: <1050005@acf4.UUCP>
Date: Sun, 27-Jan-85 17:12:00 EST
Article-I.D.: acf4.1050005
Posted: Sun Jan 27 17:12:00 1985
Date-Received: Sat, 2-Feb-85 11:08:10 EST
Organization: New York University
Lines: 34

<>

I have the following problem with LATTICE (V 2.12):

I have a piece of code with actually very little in the way of code,
but a TREMENDOUS number of variables (~~1000 longs).

The PC is running with 640K.

When it was running with a ram-disk, and I added a few bytes, I got an
"Out of Memory" error from LC2.

So I removed the ram-disk, and rebooted with the knowledge that all my
problems would be solved.

No dice.

okey doke --- must be a problem with the stack space, right?

C> lc =30000 -ml program

No dice.

So what's up???  There are no lengthy functions (max length of a function
is about 50 lines). Now if I pull out all the variables, and assign them
as externs, and compile them separately, then I expect my problems will
go away.  But is there some limit that I'm running into that isn't
documented??

Send help quick ---- the project is due next week!!


------------------------------------------------------
Ross M. Greenberg  @ NYU   ----> { allegra,ihnp4 }!cmcl2!acf4!greenber  <----
Re: Is it Lattice or me??? [message #112721 is a reply to message #112720] Mon, 16 September 2013 13:50 Go to previous message
Anonymous
Karma:
Originally posted by: cada@acf4.UUCP (CADA (Ada/Ed in C) D. Shields)
Message-ID: <1050007@acf4.UUCP>
Date: Sun, 27-Jan-85 22:20:00 EST
Article-I.D.: acf4.1050007
Posted: Sun Jan 27 22:20:00 1985
Date-Received: Sat, 2-Feb-85 11:08:51 EST
References: <1050005@acf4.UUCP>
Organization: New York University
Lines: 21

I don't think your problem is stack space because that is normally a run
time check.  Which memory model are you using ?  In all models the maximum
amount of statically allocated data is 64K (static data is put in the data
segment).  The maximum size of a single object is 32K.  Also if you are
using the small (default) model, the sum of the static data, stack and heap
cannot be more than 64K.  Try moving to the D model and see if it clears
up.  If that does not work then the only possible solution I can think of
(since it worked until you added a few variables) is to use the D or L
memory models and use the heap for your data.  For example to create an 256K
byte array of integers:

          int *d;
          char *getml();

          d = (int *) getml(256000L);

Using the large memory model, we created a program (the NYU ADA/Ed front end)
which had 160K of code and 130K of data. We were using version 2.00 of the
Lattice compiler.

                                                 Sam Chin
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: TERMCAP FOR IBM PC WITH ANSI.SYS
Next Topic: MS-DOS disk allocation table horror
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Apr 24 11:56:34 EDT 2024

Total time taken to generate the page: 0.05519 seconds