[Coco] root.r

gene heskett gheskett at wdtv.com
Wed Nov 2 23:56:53 EDT 2011

On Wednesday, November 02, 2011 11:36:38 PM Joel Ewy did opine:

> On 11/02/2011 06:05 PM, Lothan wrote:
> >> Unless view's looking for an entirely different file, but that seems
> >> unlikely.  root is like cstart, but with the regular OS-9 register
> >> setup instead of the C register setup.
> > 
> > I just looked at the code on my dev disk and see root.a is using the Y
> > register as an index to the data area, which is identical to cstart.a.
> > The difference between the two is that root.a is a lightweight version
> > of cstart.a -- root.a doesn't have any of the logic immediately after
> > the restack function up through the patch function. In other words,
> > root.a doesn't process the command-line arguments to create argc/argv
> > and it does not include the stkcheck, erexit, stacksiz, and freemem
> > functions.
> Hmm.  I wonder if assembling root.a myself will result in a relocatable
> file that will make view happy.  I'm getting some unresolved references
> using Gene's copy of root.r.  One of them is a reference in root.r to
> F$EXIT.  That's just an ordinary system call, no?  I'll have to try
> making the stuff in the SOURCES directory tomorrow.
I was thinking along those same lines Joel.  It is entirely possible that 
your clib.l is assembled in a different order than mine, which the c.asm or 
rma should fix, if you are also building root.a at the same time.  That 
root.r, on my drive, carries a Dec 1989 create date, older even than any 
copy of cstart*.r in that directory by about 5 years.  My cstart.a is by 
Tim Kientzle, dated in 1991.  So obviously I have not been using the 
microware version from the developers kit.  I recall having a discussion 
about it with myself, but 20 years dims the gist of the arguments now.

Which one (cstart.a) are you using?  Perhaps I should put that up too 
before bit rot forgets it forever?  There is a small doc file that goes 
with it:
CStart.r is a direct replacement for the Tandy/Microware CStart.r
module.  It's primary advantage is that it has no built-in limit
on the number of command line arguments it can handle, unlike
the Microware one, which is limited to 30 arguments.  Except for
this change, it should function identically.

7Apr1991 - Fixed problem with data-data and data-code refs - TBKK

Both are now in Genes-os9-stf.  Have fun.

Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
My web page: <http://coyoteden.dyndns-free.com:85/gene>
Comparing information and knowledge is like asking whether the fatness
of a pig is more or less green than the designated hitter rule."
		-- David Guaspari

More information about the Coco mailing list