[fpc-devel] inline and asm code
Gerhard Scholz
gs at g--s.de
Wed Aug 3 10:24:17 CEST 2005
I would suggest an "experimental" solution {$inline unsafe ?} which does the
inline without checks, and maybe gives a warning at compiletime: Warning:
inlined func/proc might be unsafe.
Could save some code and some exection time.
I do not understand the argument with e.g. EBP usage. I would say this is
dangerous in not inlined code also, isn't it?
Gerhard
-----Ursprüngliche Nachricht-----
Von: "Marco van de Voort" <marcov at stack.nl>
An: "FPC developers' list" <fpc-devel at lists.freepascal.org>
Gesendet: Montag, 1. August 2005 22:18
Betreff: Re: [fpc-devel] inline and asm code
> > I found out that for operators which are declared to be inline and have asm
code
> > inside the inlining option is ignored (I assume the same would be true for
> > procs/funcs).
> >
> > Is that intentional? Does it have a reason? Would be great if that could be
> > stopped.
>
> Yes - needs complex parsing to determine if the asm is dangerous (e.g. EBP
> usage) - enhanced support not expect anytime soon due to complexity
More information about the fpc-devel
mailing list