Article View: comp.sys.mac
Article #23437Re: 32K limit
From: -- Byron B. Han --
Date: Fri, 08 Jan 1988 18:57
Date: Fri, 08 Jan 1988 18:57
31 lines
2117 bytes
2117 bytes
In article <3737@husc6.harvard.edu> you write:
>I've dabbled a bit in programming with Lightspeed Pascal, and have run across
>an annoying, if not crippling problem. After I program for a while, the 'GO'
>option from the menu no longer will run the program; it states 'Program segment
>longer than 32K' or something like that (I haven't got it right in front of
>me).
You need to segment your application - each code segment has a maximum size
of 32K for most development environments. MPW allows the developer to override
the limit.
Segmentation on Lightspeed Pascal is achieved by selecting view by segment
by clicking in the upper right hand corner of the project window and then
dragging source files from one segment to another.
Note that with LSP your segmentation is performed at the source file level.
With MPW the segmentation is performed at the procedure level.
With segmentation, your application can be HUGE. Details on segmentation
can be found in the Lightspeed Pascal manual (as in how to segment your
project). Also details can be found in Inside Macintosh, or Knaster's books
to name two sources off the top of my head.
This is not be construed as any position on Lightspeed Pascal. This is not
an advertisement for MPW.
--
Byron Han, Communications Tool Apple Computer, Inc.
--------------------------------------------------------------------------------
CSNet: han@apple.COM UUCP: {sun,voder,nsc,decwrl}!apple!han 408-973-6450
"Without Macintoshes, life itself would be impossible." - anon.
Technical Details
Message-ID:
<7149@apple.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!mit-eddie!ll-xn!ames!ucbcad!ucbvax!hplabs!pyramid!voder!apple!hanReferences:
<3737@husc6.harvard.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!mit-eddie!ll-xn!ames!ucbcad!ucbvax!hplabs!pyramid!voder!apple!han From: han@apple.UUCP (-- Byron B. Han --) Newsgroups: comp.sys.mac Subject: Re: 32K limit Keywords: how do you make the damn thing work Message-ID: <7149@apple.UUCP> Date: 8 Jan 88 18:57:54 GMT References: <3737@husc6.harvard.edu> Reply-To: han@apple.UUCP (-- Byron B. Han --) Distribution: comp.sys.mac Organization: Communication Tools Group - Apple Computer, Inc. Lines: 31