Re: Windows Assembly



On Thu, 15 Sep 2005 20:13:46 -0400, JGCASEY <jgkjcasey@xxxxxxxxxxxx> wrote:

Richard Cooper wrote:

Now I'm not debating that at all.  The HLA
language is a perfectly valid assembly language
in my opinion.  (it still has processor registers
and instructions, so it's more assembly language
than it is anything else) It's just that the HLA
program is not an assembler, it creates output for
MASM and so it is a preprocessor.

Doesn't that make *any* HLL with an inline assembler an assembler in the sense that they also have processor register and instructions?

I know I addressed that already, but this thread is so thick I can't find it, so I guess I can't expect you to either.


Basically, GCC compiles the C code, and preprocesses the inline assembly. There's certainly no reason why a program can't do both. I guess there's a similar debate on wether or not GCC compiles the C code, or if GCC and GAS as a unit compile the C code. Most people these days would consider a program that takes C code as input and produces assembly code as output to be a compiler. On the other hand, very few would consider a program that takes C code as input and produces C code as output to be a compiler, they would call that a preprocessor.

HLA is an assembly language. MASM is an assembly language. The HLA program converts code from one assembly language to another. It doesn't assemble anything.

If what HLA does is assemble programs, then we can make a similar version of MASM, one that assembles it's programs by converting them to HLA. Then we can use these two assemblers together and assemble a piece of code an infinite number of times and still not have an executable. Obviously that's because neither of them is really assembling anything at all, they're just converting back and forth between two assembly languages.

When I use assembler in a C procedure am I doing
assembly programming?

You don't think so? It may only be a couple of lines, but inline assembly is assembly.
.




Relevant Pages

  • Re: When to emit diagnistics
    ... "char is different from signed char and unsigned char. ... I am just an "assembly language programmer". ... I assemble it ... jacob at jacob point remcomp point fr ...
    (comp.lang.c)
  • Re: Why does VS try to parse my .inc (assembler include files) as XML?
    ... > I'm migrating an assembly language project from NASM to MASM ... > I managed to convert the files to MASM syntax and assemble ... > XML and spews a shower of error messages when this fails. ...
    (microsoft.public.vsnet.general)
  • Why does VS try to parse my .inc (assembler include files) as XML?
    ... I'm migrating an assembly language project from NASM to MASM ... I managed to convert the files to MASM syntax and assemble ... XML and spews a shower of error messages when this fails. ...
    (microsoft.public.vsnet.general)
  • Re: RosAsm now Crashes 3x Faster Than Before!
    ... > RosAsm has certain flaws, ... While HLA, can do nada. ... comes pretty close to doing nada) can assemble those equates without ... > HLA is damaging asm, ...
    (alt.lang.asm)
  • Re: On-line Review of "Art of Assembly"
    ... There are user-written examples in HLA out there, ... But check out what people have to say about AoA. ... > IMO Spasm is like having sex now. ... assemble and run it? ...
    (alt.lang.asm)