cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/20/21:33:41

From: "A. Sinan Unur" <asu1 AT cornell DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Function Sizes (how to in asm?)
Date: Wed, 20 Aug 1997 08:36:52 -0400
Organization: Cornell University http://www.cornell.edu
Lines: 40
Sender: asu1 AT cornell DOT edu (Verified)
Message-ID: <33FAE4E3.247F@cornell.edu>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 970819161648 DOT 21250R-100000 AT is> <33FA2DB2 DOT 3DC3 AT cornell DOT edu> <33FAC3B1 DOT 1841 AT chem DOT uw DOT edu DOT pl>
Reply-To: asu1 AT cornell DOT edu
NNTP-Posting-Host: cu-dialup-0064.cit.cornell.edu
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Wojciech Galazka wrote:
> 
> A. Sinan Unur wrote:
> >
> > Eli Zaretskii wrote:
> > >
> > > The only reliable way is to write the function in assembly.
> >
> > assuming i have the interrupt handler written in assembly, how do i go
> > about locking it? i would appreciate it if someone could tell me how it
> > is done, or point me to an example.
> >
> Maybe DJGPP FAQ points 18.3 or 18.6 ?

maybe i should be clearer. i have read and know how to use the empty
function trick to lock memory used by a function. however, both shawn
and eli have pointed out that the only failsafe way to do it is to write
the interrupt handler in assembly. i need some clarification/pointers on
how to proceed once you have the handler in assembly. my interrupt
handler is very simple (just adds a 32 bit number to a global queue), so
even i should be able to write it. again, i would appreciate any info.
would the dpmi/api sources be any help. i have been looking at them but
i cannot exactly tell what is going on.

i guess the point about assembly is that it is not subject to further
optimization by the compiler and the size of the function will remain
fixed, correct? in that case, my question is answered. 

i would like to point out that FAQ 18.3 (software interrupts) and 18.6
(nearptr hack) are not relevant. please do read the sections you think
would be helpful before posting.
-- 
   Sinan
 
*******************************************************************
 A. Sinan Unur                                WWWWWW
                                              |--O+O
 mailto:sinan DOT unur AT cornell DOT edu                C   ^ 
 http://www.people.cornell.edu/pages/asu1/     \  ~/ 
*******************************************************************

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019