Re: usage of assembly



In article <24500c34-611d-44b8-9fac-39d73d9fb240
@e4g2000hsg.googlegroups.com>, spamtrap@xxxxxxxxxx says...

[ ... ]

well i am a computer science student so i am just starting, but it
still seems to me MUCH less time consuming to write in java or c. i
mean 1 instruction in java could take 5-10 instructions (or more) in
asm. i understand that asm runs quicker, and gives the programmer more
power, but its hard for me to belivce that even the experienced asm
coder can write equally as fast as a java or c coder. i guess
experience will tell, the only thing is that i wanted to know how much
effort i should put into asm now.

This is partly true, but only partly so. In Java you have a _huge_
library, and most of a typical program consists largely of calls to
various library routines.

In assembly, if you're working without a library, you're generally at a
fairly clear disadvantage -- you need to write the routine instead of
just calling it.

Once you have a decent library to work with, the difference between
assembly language and a higher level language tends to shrink quite a
bit -- just for example, there's very little difference between:

MoveWindow(wnd, x, y, w, h, true); /* C */

and:

invoke MoveWindow(wnd, x, y, w, h, true) ; Assembly

and

wnd.Move(x, y, w, y, true); // Java

Now don't get me wrong. It's _still_ usually quicker and easier to write
something in Java than assembly language. For an experienced programmer,
the difference may be smaller than you'd usually guess though.

--
Later,
Jerry.

The universe is a figment of its own imagination.

.



Relevant Pages

  • Re: usage of assembly
    ... still seems to me MUCH less time consuming to write in java or c. i ... mean 1 instruction in java could take 5-10 instructions in ... i understand that asm runs quicker, ... coder can write equally as fast as a java or c coder. ...
    (comp.lang.asm.x86)
  • Re: Javas performance far better that optimized C++
    ... there is no need any asm to build an OS. ... > of Java is to be an interpreted language, ... Any general-purpose language is a panacea. ...
    (comp.lang.cpp)
  • Re: usage of assembly
    ... still seems to me MUCH less time consuming to write in java or c. i ... mean 1 instruction in java could take 5-10 instructions in ... i understand that asm runs quicker, ... However, whether you are using HLL or assembly, your ability to ...
    (comp.lang.asm.x86)
  • Re: best text for writing assembler for xp
    ... they have only a "passing interest" in ASM. ... Java is the all-time favorite. ... When I changed the search to indicate "java language" instead of just ... I don't know how accurate it is since it shows assembly language is ...
    (alt.lang.asm)
  • Re: best text for writing assembler for xp
    ... they have only a "passing interest" in ASM. ... Java is the all-time favorite. ... When I changed the search to indicate "java language" instead of just ... I don't know how accurate it is since it shows assembly language is ...
    (alt.lang.asm)