From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 11 05:02:36 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D72E916A4CE for ; Fri, 11 Mar 2005 05:02:36 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C79943D39 for ; Fri, 11 Mar 2005 05:02:36 +0000 (GMT) (envelope-from joseph.koshy@gmail.com) Received: by rproxy.gmail.com with SMTP id j1so666711rnf for ; Thu, 10 Mar 2005 21:02:33 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=eggjeZoUZX0C/bpFt9CyM1+nuf3f6Xt2J0g4GojPvxnuZkBdgdO5QtWvV09t5NLt+eAdNuLfneSy1W3BPnD2G39sQC8oEolL8Y29dsOKG4lZUEb8NCadxyaZyGeHCxt6dfPlR/NYCXVnqn4TuM14PyJKbA4KJZyBw3nGoIT1fnY= Received: by 10.39.3.5 with SMTP id f5mr588720rni; Thu, 10 Mar 2005 21:02:33 -0800 (PST) Received: by 10.38.209.22 with HTTP; Thu, 10 Mar 2005 21:02:33 -0800 (PST) Message-ID: <84dead72050310210226f2ca9c@mail.gmail.com> Date: Fri, 11 Mar 2005 05:02:33 +0000 From: Joseph Koshy To: klowd9 - In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: cc: freebsd-hackers@freebsd.org Subject: Re: Freebsd Asm X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Joseph Koshy List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Mar 2005 05:02:36 -0000 > I already visited int80h.org and linuxassembly.org and others, And did not > find any resources or include files.. > If anyone can share his own files, or give any tips, would be nice. It is straightforward: The assembly syntax is whatever is supported by gas(1) for your architecture. 'info gas' should be of help. The BSD make(1) infrastructure supports creating objects from assembler sources; just name your assembler files with a .S or .s suffix and include these names in your 'SRCS' make variable. Files with a ".S" suffix are preprocessed by cpp(1) before being fed into the assembler. Files with a ".s" suffix are fed into the assembler without preprocessing. See "src/share/mk/sys.mk". There are some convenient CPP macros for assembly language programmers in and . You can also study the assembly sources under "src/lib/libc/*". -- FreeBSD Volunteer, http://people.freebsd.org/~jkoshy