From owner-freebsd-questions@FreeBSD.ORG Wed Nov 5 20:42:17 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 930FE16A4CE for ; Wed, 5 Nov 2003 20:42:17 -0800 (PST) Received: from plewe.is.tsukuba.ac.jp (plewe.is.tsukuba.ac.jp [130.158.81.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 395F043FE5 for ; Wed, 5 Nov 2003 20:42:16 -0800 (PST) (envelope-from till@plewe.is.tsukuba.ac.jp) Received: from plewe.is.tsukuba.ac.jp (localhost [127.0.0.1]) hA64hGjH011339; Thu, 6 Nov 2003 13:43:16 +0900 (JST) (envelope-from till@plewe.is.tsukuba.ac.jp) Received: (from till@localhost) by plewe.is.tsukuba.ac.jp (8.12.10/8.12.10/Submit) id hA64hGwi011338; Thu, 6 Nov 2003 13:43:16 +0900 (JST) (envelope-from till) Date: Thu, 6 Nov 2003 13:43:16 +0900 From: Till Plewe To: freebsd-questions@freebsd.org Message-ID: <20031106044316.GB11221@plewe.is.tsukuba.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.4i-ja.1 Subject: assembler, icc/gcc, X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: till@score.is.tsukuba.ac.jp List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Nov 2003 04:42:17 -0000 I am writing a program where speed is very important. Some parts will probably have to be written in assembler. I have a dual-Xeon machine running CURRENT. I am looking for {advice on,experiences people have had with} writing assembler programs for pentium4/xeon processors. (I have too many manuals right now and difficulties in deciding where to start) In particular, I am not sure whether I should be using nasm/icc or gas/gcc. Nasm supports SSE2 instructions (I don't know if gas does, the intel2gas port doesn't) which I probably need in order to manipulate 81bit-500bit integers (sets) efficiently. On the other hand I would like to be able to use inline assembler but that seems to be impossible with NASM and gcc. I don't exactly know what style of inline assembler icc supports yet. Besides /usr/ports/lang/intel2gas there is a nasm-2-gcc-inline translator at Fermilab http://lqcd.fnal.gov/sse/inline.html which I haven't tried yet. In any case any suggestions as to how to proceed would be appreciated. - Till