🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #16496

Re: Code Segments > 32K

#16496
From: Clith de T'nir a.k.a. Reid Ellis
Date: Sun, 31 May 1987 21:54
42 lines
2532 bytes
In article <gUjLscy00UhTg480nL@andrew.cmu.edu> rs4u+@ANDREW.CMU.EDU (Richard Siegel) writes:
|in <2068@emory.UUCP>, gatech!seismo!cmcl2!nyu-acf2.arpa!siritzky (Brian
|Siritzky) writes:
|>   ...  All of these C compilers
|> will only allow you a 32K code segment - for the whole program. In our
|> case this was way too little.
|> I have since tried the MPW C. It is better than the others for my problems,
|> although it still has the 32k limitation (I'm told that this is a problem
|> with the Mac OS!).
|	This is partially true. You're allowed a maximum of 32K of executable
|code per code segment, but that is *not* a 32K limit on total program size.
|	As far as this limitation being a "problem" with the Mac OS, I
|doubt it. It *is* a limit, but ...
[...]
|If you really wanted to, you could write your own segment loaded, and
|then have segments as big as you want.
|		--Rich

  Is it not true that there is no limit to CODE segments?  The bug that limits
segments to 32k is in WriteResource, so only the compiler needs to worry
about it.  Am I right on this?
  With MPW, you can say 'Link -ss 100000 foo.o -o foo' and you'll be allowed
to have segments of up to 100,000 bytes in size.  This will definitely work
on new ROM machines, but MPW says:

	64k ROM note:	Caution!  Applications with segments
			greater then 32k in size may not load
			correctly on Macintoshes with 64k ROMs.

  Will someone please make this clear?  Will a 37k CODE segment work on
an old-ROM Macintosh?
						Reid
--
	"Hey!  You're not Ricky Ricardo, you're
	a cop!  And those are potatoes."
					"Huh?  Hey -- the kid's right!
					You're under arrest, Pal!  Whew,
					you sure saved the day, kid."

Reid Ellis, aka Clith de T'nir
		{seismo!mnetor, utzoo!yetti}!unicus!rae	(uucp)
		mnetor!unicus!rae@seismo.css.gov	(arpa)
Technical Details
Message-ID: <572@unicus.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!yetti!unicus!rae
References: <gUjLscy00UhTg480nL@andrew.cmu.edu>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/5/84; site unicus.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!yetti!unicus!rae
From: rae@unicus.UUCP (Clith de T'nir a.k.a. Reid Ellis)
Newsgroups: comp.sys.mac
Subject: Re: Code Segments > 32K
Message-ID: <572@unicus.UUCP>
Date: Sun, 31-May-87 17:54:01 EDT
Article-I.D.: unicus.572
Posted: Sun May 31 17:54:01 1987
Date-Received: Wed, 3-Jun-87 04:59:05 EDT
References: <gUjLscy00UhTg480nL@andrew.cmu.edu>
Reply-To: rae@unicus.UUCP (Clith de T'nir a.k.a. Reid Ellis)
Organization: Unicus Software Inc.
Lines: 42
Keywords: mpw segment c 32k limit
Summary: 32k CODE segments are Ok, aren't they?