Re: Assembler Directive



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
.



Relevant Pages

  • Re: Assembler Directive
    ... >I find it is used many times in the RTL and the RTL should be cleaned up by ... >removing all assembler directives. ... available as long as Borland supports the Win32 platform. ...
    (borland.public.delphi.language.basm)
  • Re: HLA v2.x and / or LASM suggestion: Win32 Resources
    ... Assembler" probably always get when people are actually talking about ... machine_ from ASM or even some of the more "low-level" C programming - ... "Abstraction" - as I keep saying and, one day, I Hope people will ... writing code thinking it's "portable" when, in fact, it contains ...
    (alt.lang.asm)
  • Re: What micros do you actually hate to work with?
    ... with less than tiny asm ... hassle to work with 32 bit longs in assembler for an 8 bit uP, ... Microchip's C compiler tools and their assembly under MPLAB. ... In this case, also, I was the only programmer. ...
    (comp.arch.embedded)
  • Re: Helpful Practical Uses of Conditional Assembly
    ... > The best ASM for teaching is likely to be very uncluttered ... The best assembler for applications writing is free of pointless ... actually play a single note of it on a real instrument... ...
    (alt.lang.asm)
  • Re: Why use assembly?
    ... I use asm because, when given a propper tool, like RosAsm, its simply the easiest, clearest language. ... that learning asm with some of the older assembler may actually be a pain in the ass. ... The remaining bits that are not easy, comes from situations like when you have to write your own code for things that just take a single line of code in a HLL. ... Becomming an asm programmer is to take the step from beeing a servant in the dark to beeing the master of your own destiny in the programming world. ...
    (alt.lang.asm)