Re: ASM vs HLL : absurd war

From: Alex McDonald (alex_mcd_at_btopenworld.com)
Date: 07/12/04


Date: Sun, 11 Jul 2004 23:09:35 +0000 (UTC)


"Dunny" <paul.dunn4@ntlworld.com> wrote in message
news:2ldpogFbg62iU1@uni-berlin.de...
> In news:40c958f8.0407111128.1fc8487c@posting.google.com,
> Percival <pr_tiglao@yahoo.com> typed:
>
> > BTW, before the oncomming of your (betov) claim that HLA isn't an
> > assembler, there wasn't any need of knowing what an assembler is :-D
>
> I see it as anything that allows you to program in instructions that are
native
> to the chip itself - Delphi has a builtin "assembler" but it's nothing
like as
> powerful as masm. Anything that brings you away from the chipset's
instructions
> by any level of abstraction (such as pascal, c, basic) is a compiler - so
long
> as it converts what you have written into the instructions used by the
chip
> *before* it's run. If it does it at runtime, it's an interpreter :)

Or Forth, which compiles at run-time. Or JIT compilers. These definitions
are way too tight! Generally, an interpreter doesn't generate code at all;
it runs in a "virtual machine" code that the real machine emulates; as an
example, the JVM (Java Virtual Machine) interprets byte-codes, the
"op-codes" that the Java compiler produced. And best we don't tell Betov
about Jasmin -- it's a JVM assembler that produces bytecode that will run on
any processor that hosts JVM...

>
> Such things as Macros and HLA do muddy the waters somewhat, but I believe
that
> macros at least are a secondary function of assemblers,

I'd say an assembler without a macro facility isn't really that useful. The
best assembler of all time (BAL for IBM mainframes) had a superb macro
facility; entire applications were written in macros. Essential for serious
coding.

> so they are not
> compilers as such.

True.

-- 
Regards
Alex McDonald


Relevant Pages

  • Re: RosAsm?
    ... not what the instructions are. ... With a good set of macros this can be made even clearer... ... in this vain in my option the only programmers who should be ... by the assembler in a "Label not defined" error and probably ...
    (alt.lang.asm)
  • Re: Is Assembler Language essential in compiler construction?
    ... most university first courses on compilers don't spend much ... the utility instructions like clear and complement registers. ... The changes I made included creating a macro assembler for the new ...
    (comp.compilers)
  • Re: [OT] On `ad hominem - OS X users
    ... It seems both of you are getting closer to some kind of solution or understanding of why Math::Pari isn't behaving that well on OS-X ... There are sometimes some instructions, which are specifically created for certain algorithms as for example the SAD8 ... you do not know how assembler is used in multiprecision ... It's a fact that modern compilers *usually* generate faster code than ...
    (comp.lang.perl.modules)
  • Re: HLA Paren Rules
    ... macros do not violate "total control" principle because they are ... where two instructions map to the same exact machine code. ... JB and JC are the exact same instruction. ... modern programmer would not ever consider using an assembler as ...
    (alt.lang.asm)
  • Re: Compilation Was: Is DEFCONSTANT broken?
    ... compilation is to reduce code complexity, ... There's money in compilers? ...  And, by the way, assembler code is not compiled code; it ... they are just instructions which happen to be the target of the jump). ...
    (comp.lang.lisp)