Mail Archives: djgpp-workers/1999/05/31/03:59:21
Eli Zaretskii wrote:
>
> On Thu, 27 May 1999, Mark E. wrote:
>
> > > But if GCC supports something like __attribute__((interrupt)), then I
> > > agree we should go for that. I'm not privy enough to GCC/EGCS
> > > developments to know whether in fact such an attribute exists.
> > >
> >
> > It does for several targets.
>
> That's good news.
>
> > Would this be something that would work the same for all x86 targets?
>
> Probably not. At least the wrapper code is DPMI- and DJGPP-specific
> in some of its aspects. I think.
I'm currently working on __attribute__((naked)) for *ALL* egcs ports.
This will produce functions that have *NO* entry or exit code (main code
only), not even a `ret', I believe. Of course, the programmer will be
required to supply the appropriate code via asm statements. Ideal for
interrupt functions (especially in cross platform code), and probably
library startup code (eg .init in elf).
I've actually got most of the work done, I just have to figure out where
exactly to put the tests for nakedness and not emit the prolog/epilog
code.
Bill
--
Leave others their otherness.
- Raw text -