🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #9433

Re: Reentrant Lattice C code

#9433
From: Tom Limoncelli
Date: Thu, 04 Aug 1988 23:20
45 lines
2346 bytes
In Article <4373@cbmvax.UUCP> carolyn@cbmvax.UUCP (Carolyn Scheppner
CATS) writes:
>In article <3025@cs.utexas.edu> bryan@mothra.cs.utexas.edu writes:
>>
>>	Is there any way to bully Lattice C 4.0 into producing reentrant
>>(sharable) code, that is, get rid of all absolute references from the code to
>>the data segment?  
>
>   I have a couple of versions of reentrant startup code which will
>appear on the 1.3 Native Developer Update disks when 1.3 is released.
>These startups can be used in place of Astartup (not Lstartup/c.o).
>So if you program can be compiled -v and linked with Astartup.obj...
>LIBRARY Amiga.lib, LC.lib, and you write YOUR code so it is reentrant,
>you can link with the new reentrant startup code and create executables
>that can be made resident. (like 1.3 More program, etc.)
>
[ Much deleted about making your code reentrant by having no globals,
etc ]
>

You are talking about reentrant code, right?  Not resident?  I would
hate to have to go through all that to make my stuff "pure".  (I'm one
of the few people in the world without an illegal copy of 1.3 gamma
99999 )-: )

Could someone go over what it takes to make code RESIDENT?  I was
sort-of-hopeing that most well-behaved programs that don't modify
string constants (that are in the code segment), etc should work...
right?

Thanks in advance,
Tom
-- 
Tom Limoncelli

Currently using crutches and in great pain, but still available at:
limonce@pilot.njin.net		"Remember all the great times we had?"
tlimonce@drew.bitnet		"Yeah... was that *you*?"
tlimonce%drew@cunyvm.cuny.edu
"The opinions expressed above are mine... just mine."
(Hey Eric!  Remember when I was so proud to finally be on a net and your 
reply was, "Bitnet?  Ok... tell me when you get on a real net"?  Well,
look at the new signature!  A real net!  Right on the internet!  See! See!
It's also reachable via limonce@njin.rutgers.edu.  Ok Eric?  )
Technical Details
Message-ID: <Aug.4.19.20.35.1988.6604@pilot.njin.net>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!husc6!cmcl2!rutgers!njin!limonce
References: <3025@cs.utexas.edu> <4373@cbmvax.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!husc6!cmcl2!rutgers!njin!limonce
From: limonce@pilot.njin.net (Tom Limoncelli)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Reentrant Lattice C code
Message-ID: <Aug.4.19.20.35.1988.6604@pilot.njin.net>
Date: 4 Aug 88 23:20:36 GMT
References: <3025@cs.utexas.edu> <4373@cbmvax.UUCP>
Organization: NJ InterCampus Network, New Brunswick, N.J.
Lines: 45