From owner-freebsd-questions@FreeBSD.ORG Mon Mar 12 09:36:14 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E9EF816A402 for ; Mon, 12 Mar 2007 09:36:14 +0000 (UTC) (envelope-from nvass@teledomenet.gr) Received: from wmail.teledomenet.gr (wmail.teledomenet.gr [213.142.128.16]) by mx1.freebsd.org (Postfix) with ESMTP id AB8D513C44C for ; Mon, 12 Mar 2007 09:36:14 +0000 (UTC) (envelope-from nvass@teledomenet.gr) Received: from iris (unknown [192.168.1.71]) by wmail.teledomenet.gr (Postfix) with ESMTP id E52FD1C87FF; Mon, 12 Mar 2007 11:12:14 +0200 (EET) From: Nikos Vassiliadis To: freebsd-questions@freebsd.org Date: Mon, 12 Mar 2007 11:37:16 +0200 User-Agent: KMail/1.9.1 References: <45F433D1.40802@fastmail.fm> In-Reply-To: <45F433D1.40802@fastmail.fm> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200703121137.16910.nvass@teledomenet.gr> Cc: Patrick Bowen Subject: Re: Assemblers for FreBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Mar 2007 09:36:15 -0000 On Sunday 11 March 2007 18:52, Patrick Bowen wrote: > If one wanted to learn Assembly Language Programming, would he be better > served starting with as(1) or nasm(1)? as(1) is the assembler used in the building procedure, making it your logical choice for operating system programming. It uses the AT&T syntax of UNIX heritage. It understands Intel's syntax as well. Keep in mind that the code in the tree is in AT&T syntax. I guess that must be true for all Unix-like operating systems. Last time I checked, nasm was intel only. I think that nasm mainly served people coming from DOS, people that already knew the Intel syntax. If I was about to try assembly, I would learn AT&T. I think there is more code in Intel syntax though, mainly in the graphics area. It depends on what your purpose is. Operating system programming is dominated by as(1). > Also, are either of those > applicable to AMD64, or just i386? Since as(1) is the only assembler in the tree, and FreeBSD can build itself... as(1) supports many machines... HTH, Nikos