Re: QC Report on Swap Function



At 13:59:21, 31.08.2005, Will DeWitt Jr. wrote:

> Rudy Velthuis [TeamB] wrote in
> <xn0e6kzzw1ondsv01v-velthuis@xxxxxxxxxxxxx>:
>
> > Not sure how easy it is to deprecate a magic function.
>
> If it were possible to inline BASM functions then they could simply put
> Swap into the System unit (no longer a compiler magic func) and mark
> that as deprecated.

The idea of inline functions is that code is not just copied verbatim, it
becomes part of the routine in which it is used, i.e. optimisations etc.
can change register use, code order, code sequences, etc. according to
the code surrounding the invocation. This is impossible with assembler
(which has fixed code, with fixed register use), so I guess that is why
they are not allowed by the compiler.
--
Rudy Velthuis [TeamB] http://velthuis.homepage.t-online.de

"They show you how detergents take out bloodstains. I think if
you've got a T-shirt with bloodstains all over it, maybe your
laundry isn't your biggest problem." -- George Carlin
.