Re: usage of assembly
- From: Jerry Coffin <spamtrap@xxxxxxxxxx>
- Date: Sun, 25 Nov 2007 14:25:51 -0700
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.
.
- Follow-Ups:
- Re: usage of assembly
- From: santosh
- Re: usage of assembly
- From: Jerry Coffin
- Re: usage of assembly
- References:
- usage of assembly
- From: david s
- Re: usage of assembly
- From: Bob Masta
- Re: usage of assembly
- From: david s
- usage of assembly
- Prev by Date: Re: usage of assembly
- Next by Date: Re: usage of assembly
- Previous by thread: Re: usage of assembly
- Next by thread: Re: usage of assembly
- Index(es):
Relevant Pages
|
|