Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Oct 2014 11:34:32 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        =?iso-8859-1?Q?fran=E7ai_s?= <romapera15@gmail.com>
Cc:        freebsd-drivers@freebsd.org
Subject:   Re: Exist university that teaches that is necessary coding in Assembly?
Message-ID:  <AE658499-8DA7-4660-BD3A-7004D524339E@bsdimp.com>
In-Reply-To: <CAK_6RwcGdGpOX_s0u7W-cyH143Y3jXt9GdfQpwCQPsn5AR8S1A@mail.gmail.com>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]

On Oct 21, 2014, at 10:57 AM, françai s <romapera15@gmail.com> wrote:
> Is true that very few people write directly in Assembly?

Yes. People do it only when necessary. And the cases where it is necessary
have dwindled as the compiler technology has improved over the years.
Now people usually just need to do it to access special bits of the machine
that aren’t accessible via normal C. And even then, the trend has been to
create inline functions callable from C that produce the right generated code
with the users of those functions having to know or care they are in assembler.

There are also some rare occasions where people write directly in hex
because the op-codes aren’t in the assembler that they are using and they
need that functionality. Rare, but it does happen sometimes in the deep,
machine-speicifc bowls of the kernel.

> Exist university that teaches that is necessary coding in Assembly?

It has been a few years since I was in school, but when I went to school,
people at the time said that assembler coding was rarely needed. That said,
we had a crash course in assembler so that we could write an assembler for
the VAX 11/750 running 4.2BSD as part of our course in C to teach us how
the computer worked.

Over the years I’ve picked up other assemblers by reading the relevant architectural
definition manuals, gas (and other) assembler documentation and through much trial
and especially error.

Warner



[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJURpkoAAoJEGwc0Sh9sBEAr6EP/Rhpjf3RVEg2AkQ8HM7pQ9Gl
4WZCjWatmTyr0J4mkZX3ppqe4rHhMD2e89X2HTCtVcfJxh+c2oWM9pY/B1S1jnXk
1dvAHWdYLlk4CerPNn5bk58ftm8K7RrdCrtAqwXmPl8lAlDog/LPKYmDnFvmQlT3
RIkKNeBbhGsVxeaWk4wlCqjXkGMSjznexangt3b8FXo6FivjxkY4oa9dwFEpbPaC
xMnqtKsv8I1TlptgMDP7Oc/rspK4F0a4+hCGf5qy5qIU6e81Ou9aqtSGYBDQmln4
jEi1AxraHzKkPYc0FrQnPNJoTi43Fjjs0AO1R7ImQ44wdoEA7eyyiRKn/ebPyGMv
vYVnM19/kq8e5DX+JOjSkWT4hqsf8lY7/VgjFA6jx6CyJZ5V7FZaN76Wm2S+NLeQ
b/Dcf4Y5xZc/uuwFehBISKzAeh859ys9DQ6fd8BFXuo9f8JfMdRV1mcNExkWrYdl
m6+YAdMNAi+9xvfRDZHAf47IlwncOrQuGuuv7nBpZ38dvyfterl4rP2ZS32TXLSg
4hWue+EkwyzA/v6q2tLdE/lAB0QSDwG4LxOzoKtu2sWeSbpUj5LH/QTwpuBsa9ya
MLECAb6eyG5BbU/G9k2N3WDMFRh/RsNRKQh6hmMbC2VhhZqER8vG7Xz7gLuYk/jS
6gQgtLdQdKERrUfriGgW
=AtuV
-----END PGP SIGNATURE-----
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AE658499-8DA7-4660-BD3A-7004D524339E>