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" <[EMAIL PROTECTED]> An: "FPC developers' list" <[email protected]> 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 _______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/mailman/listinfo/fpc-devel
