[A86] Re: SDCC v2.3.0
[Prev][Next][Index][Thread]
[A86] Re: SDCC v2.3.0
On Fri, 19 Oct 2001 15:24:23 +0200 "Henk Poley" <HPoley@DDS.nl> writes:
>
> > Van: David Phillips <david@acz.org>
> > See, that's the problem with compilers. If you look at modern day
> > compilers, things like the "register" keyword are obsolete.
> Watcom was
> > like that, and I'd think gcc is the same way. There is no
> "inline"
> > keyword in C (did they add that in C99?), only C++. But it
> shouldn't be
> > needed.
>
> I think it IS needed. When you state that a routine should/could be
> inlined, you also know that it can't be sure if you can call the
> routine
> from the 'outside' (assembly routines, etc.). Normal (non-inline)
> routines
> can always be called. At least on Z80 (!), for example on some other
> targets of SDCC you then need to specify that the routine is
> reentrant.
Doesn't extern guarantee that a non-inline version of the routine will
exist?
If not, sounds like something similar to volatile (essentially opposite
of register) should exist for functions.
-josh
________________________________________________________________
GET INTERNET ACCESS FROM JUNO!
Juno offers FREE or PREMIUM Internet access for less!
Join Juno today! For your FREE software, visit:
http://dl.www.juno.com/get/web/.
Follow-Ups: