From owner-freebsd-amd64@FreeBSD.ORG Sun Dec 23 04:29:47 2007 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CCA5816A417 for ; Sun, 23 Dec 2007 04:29:46 +0000 (UTC) (envelope-from nge@cs.hmc.edu) Received: from knuth.cs.hmc.edu (knuth.cs.hmc.edu [134.173.42.100]) by mx1.freebsd.org (Postfix) with ESMTP id 8702C13C457 for ; Sun, 23 Dec 2007 04:29:46 +0000 (UTC) (envelope-from nge@cs.hmc.edu) Received: by knuth.cs.hmc.edu (Postfix, from userid 26983) id 3A73785140; Sat, 22 Dec 2007 20:29:46 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by knuth.cs.hmc.edu (Postfix) with ESMTP id 3A09A42F7E0; Sat, 22 Dec 2007 20:29:46 -0800 (PST) Date: Sat, 22 Dec 2007 20:29:46 -0800 (PST) From: Nate Eldredge X-X-Sender: nate@knuth.cs.hmc.edu To: zhang feng In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-amd64@freebsd.org Subject: Re: how do i write assembly code in amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Dec 2007 04:29:47 -0000 On Sun, 23 Dec 2007, zhang feng wrote: > hello,all > i write asm32 code in linux.when i run the code in freebsd amd64, it cannt > run. > someone give me a help for coding asm64 in freebsd. amd64 has a whole different instruction set than 32-bit x86, though there are similarities. Documentation is available at http://www.amd.com/us-en/Processors/DevelopWithAMD/0,,30_2252_9044,00.html , under "AMD64 Architecture Programmers' Manuals". -- Nate Eldredge nge@cs.hmc.edu