From owner-freebsd-drivers@FreeBSD.ORG Tue Oct 21 19:15:42 2014 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9CE29AD8 for ; Tue, 21 Oct 2014 19:15:42 +0000 (UTC) Received: from mail-qg0-x234.google.com (mail-qg0-x234.google.com [IPv6:2607:f8b0:400d:c04::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5DE04AA3 for ; Tue, 21 Oct 2014 19:15:42 +0000 (UTC) Received: by mail-qg0-f52.google.com with SMTP id q108so1409212qgd.39 for ; Tue, 21 Oct 2014 12:15:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=l+BiVgV2oaSIlFuheZZ2xSsSJ6STPCLgpYjNNp9q8L0=; b=koNn13reBOQypuU+P3UbU/4eerTXCaLfTqBt2DRFFFjctb8IajYyScd6g11wcGdDMy nFtjnhj0yUJMt2K9k/naWJsXEup6B8pgXVtY6OIFYYTQjm8sWjHMzA05N3RxoAkAkJZ4 Y2mAWgfxLBGnYkL7YK0lXqA8w+LifV+v9s2VGTJ3UkNI+oMyhyeJJxocc5vGSS2e/NIF gsQTINSnkeLeqt6YEMYC1Imk2/RlLZj1sSK3NhpLBGFxBPZIEIqD9HiL62mwjp0HD+V1 xwZC5z0ySAHt8qTumdUHe/mi3I//obceKztSjKg+4J1jdr4UJuQ2GJj8IoV+MF0LVG80 puJQ== MIME-Version: 1.0 X-Received: by 10.224.98.212 with SMTP id r20mr14187766qan.31.1413918941416; Tue, 21 Oct 2014 12:15:41 -0700 (PDT) Received: by 10.140.27.234 with HTTP; Tue, 21 Oct 2014 12:15:41 -0700 (PDT) In-Reply-To: References: Date: Tue, 21 Oct 2014 16:15:41 -0300 Message-ID: Subject: Re: Exist university that teaches that is necessary coding in Assembly? From: =?UTF-8?Q?fran=C3=A7ai_s?= To: Warner Losh Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-drivers@freebsd.org X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Oct 2014 19:15:42 -0000 2014-10-21 14:34 GMT-03:00, Warner Losh : > > On Oct 21, 2014, at 10:57 AM, fran=C3=A7ai s wrote= : >> Is true that very few people write directly in Assembly? > > Yes. People do it only when necessary. And the cases where it is necessar= y > 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 machi= ne > that aren=E2=80=99t 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=E2=80=99t 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 sai= d, > we had a crash course in assembler so that we could write an assembler fo= r > 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=E2=80=99ve picked up other assemblers by reading the rel= evant > architectural > definition manuals, gas (and other) assembler documentation and through m= uch > trial > and especially error. > > Warner > > > Dear Warner, Thanks to you because you have answered the most of the questions I wanted that you to answer Please, answer this: What is the university of computer in that you studied that teaches that is necessary coding in Assembly? What are the countries in that they exist , if you can not speak the names of all countries, please tell only examples. I want to have complete knowledge about binary coding and Assembly, I do not want to learn binary coding and Assembly of the same way that the peoples the says that nobody writes directly in binary.