Assembly or ....

Scott Wilson swilson%thetone at Sun.COM
Wed Nov 23 04:43:22 AEST 1988


In article <1388 at aucs.UUCP> 861087p at aucs.UUCP (A N D R E A S) writes:
>
>     Since this are Newsgroups that mainly programmers write I
>would like to ask them if it really worth it to spend time to
>learn assembly language.
>[...]
>I've been told also that there are some low-level operations
>that you just can't do in C or any other high level language.
>Device drivers are also written in assemly.

I was once semi-fluent 68000, but not anymore.  Learning at least
one assembly language is, in my opinion, a very valuable experience
whether or not you plan to program in it extensively.  It gives you
a better feel for what goes on "underneath" C and certainly builds
appreciation for compilers.  It also comes in handy if you suspect
that your compiler is buggy as you can look at its output to see
if it is doing the right thing.

UNIX kernels are a good example of what can and can't be done in
a high-level language.  Device drivers as well as nearly all of the
kernel is in C.  The parts that are in assembly deal with low-level
fun stuff like altering priorities, initializing/handling traps,
interrupts, etc.

I'd say its definitely worth it to spend the time to learn
assembly language.


--
Scott Wilson		arpa: swilson at sun.com
Sun Microsystems	uucp: ...!sun!swilson
Mt. View, CA



More information about the Comp.lang.c mailing list