www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/11/07:40:48

Date: Sun, 11 Jan 1998 14:33:46 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Adam Young <ayoung AT ksu DOT edu>
cc: djgpp AT delorie DOT com
Subject: Re: Comparison: Serial Port Routines
In-Reply-To: <Pine.SOL.3.96L.980108180450.18398A-100000@abc.ksu.ksu.edu>
Message-ID: <Pine.SUN.3.91.980111143306.15603K-100000@is>
MIME-Version: 1.0

On Thu, 8 Jan 1998, Adam Young wrote:

> What I am wanting to know is what is the difference between the two
> methods (ie advantages and disadvantages).

One disadvantage of writing interrupt handlers in C is that there is
no reliable way of computing the size of a C function.  This size
is required to lock the code of the handler in memory (as you always
need to do with hardware interrupt handlers).  There are common tricks
to do this which work with current versions of GCC, but they aren't
guaranteed to work with future versions.

- Raw text -


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