From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 4 14:09:51 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 F29BC16A4DE for ; Tue, 4 Jul 2006 14:09:51 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 211A543D5C for ; Tue, 4 Jul 2006 14:09:51 +0000 (GMT) (envelope-from asmrookie@gmail.com) Received: by wx-out-0102.google.com with SMTP id s9so707026wxc for ; Tue, 04 Jul 2006 07:09:50 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=iuNHzQ988qGpCzM2M8TOzp0nCvEzmbXbq4dpGcqCnw/IodG0LnNZQxM7bsbHgZRcRnHrAbxZZPtmVqCcU1a59YAcrgDcWaa1iAxP6nFqAgOtqWXoaWRfnXAkeeplH7zvgdXQnMecR6ZghYQgBLmNkAllYJMHGd0JJWAQytQ96qU= Received: by 10.70.128.8 with SMTP id a8mr7670309wxd; Tue, 04 Jul 2006 07:09:50 -0700 (PDT) Received: by 10.70.11.15 with HTTP; Tue, 4 Jul 2006 07:09:50 -0700 (PDT) Message-ID: <3bbf2fe10607040709h3625059ck616eded8ce38499f@mail.gmail.com> Date: Tue, 4 Jul 2006 16:09:50 +0200 From: "Attilio Rao" Sender: asmrookie@gmail.com To: "Aditya Godbole" In-Reply-To: <2f3a439f0607040654h1983febbhfbceb974e366e855@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2f3a439f0607040654h1983febbhfbceb974e366e855@mail.gmail.com> X-Google-Sender-Auth: 75abe608f0d11710 Cc: freebsd-hackers@freebsd.org Subject: Re: assyms.s X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jul 2006 14:09:52 -0000 2006/7/4, Aditya Godbole : > Hi, > > I was going through the machine dependant code and found that > assembler symbols are created using a script that parses symbol names > taken from an object file. Why is it done this way? Are there any > advantages of doing this? assym.s just keeps track of some 'offsets' (often inside data structures) to be used in .s codes. It's preliminary generated from $arch/$arch/genassym.c. Attilio -- Peace can only be achieved by understanding - A. Einstein