🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Public Code

#261
From: Matt Dillon
Date: Fri, 30 Jun 1989 03:51
26 lines
1643 bytes
:For example, lattice has the __interrupt qualifier for functions. What does
:that qualifier do? Does it force the linker to load the code in public memory?

	The manual says it does nothing.  It only exists to maintain 
compatibility with ports to other machines (??).  The only special
qualifier that would be applicable would be the __saveds qualifier (save
the global data base register A4 and then load it with the proper value.
restore it before returning).  

	With Lattice C V5.02 you can also specify that arguments to functions
exist in specific registers so interrupt code can be written completely in
C, as can library code.  I haven't dealt with that specific feature too much
yet since my goal is to get my programs to compile under both Lattice C and
Manx C.  I guess I'll post a message on that.

:This is a signifincant detail, because if indeed all compilers (and
:programmers) make sure their interrupt code, and code that calls Forbid() and
:Disable() are located in locked memory, then an upcoming virtual memory manager
:will have every right to crash programs which do not follow these rules.
:
:Valentin

	Heh.  That's Valentin talking all right.  Hopefully I'll be able 
to get my hands on an A2500 so I can fool around with the VM stuff! 

					-Matt
Technical Details
Message-ID: <8906300351.AA12335@postgres.Berkeley.EDU>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!ukma!tut.cis.ohio-state.edu!ucbvax!POSTGRES.BERKELEY.EDU!dillon

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!ukma!tut.cis.ohio-state.edu!ucbvax!POSTGRES.BERKELEY.EDU!dillon
From: dillon@POSTGRES.BERKELEY.EDU (Matt Dillon)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Public Code
Message-ID: <8906300351.AA12335@postgres.Berkeley.EDU>
Date: 30 Jun 89 03:51:12 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Lines: 26