Re: Assembler Directive
- From: "Rudy Velthuis [TeamB]" <velthuis@xxxxxxxxx>
- Date: Mon, 29 Aug 2005 14:02:46 +0200
At 13:59:13, 29.08.2005, Anders Isaksson wrote:
> On Mon, 29 Aug 2005 12:04:47 +0200, "Dennis"
> <marianndkc@xxxxxxxxxxxxxxx> wrote:
>
> > Is it true that the assembler directive is deprecated and should not
> > be used anymore?
> >
> > I find it is used many times in the RTL and the RTL should be cleaned
> > up by removing all assembler directives.
>
> In .NET you cannot use assembler code (as it is intended for a specific
> CPU, something the generated IL code is not), so in view of that, yes
> assembler is deprecated.
>
> In Win32 you can still use assembler, and I suppose that asm will be
> available as long as Borland supports the Win32 platform.
I guess he meant the "assembler" directive, i.e. something like:
procedure Add(A, B: Integer): Integer; assembler;
asm
add eax,edx
end;
The "assembler" after the function declaration is absolutely unnecessary.
It does not do anything, anymore.
--
Rudy Velthuis [TeamB] http://velthuis.homepage.t-online.de
"Being on the tightrope is living; everything else is waiting."
-- Karl Wallenda
.
- References:
- Assembler Directive
- From: Dennis
- Re: Assembler Directive
- From: Anders Isaksson
- Assembler Directive
- Prev by Date: Re: Assembler Directive
- Next by Date: Re: QC Report on Swap Function
- Previous by thread: Re: Assembler Directive
- Next by thread: Re: Assembler Directive
- Index(es):
Relevant Pages
|