Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S264992AbTIDODe (ORCPT ); Thu, 4 Sep 2003 10:03:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S265028AbTIDODe (ORCPT ); Thu, 4 Sep 2003 10:03:34 -0400 Received: from chaos.analogic.com ([204.178.40.224]:59008 "EHLO chaos.analogic.com") by vger.kernel.org with ESMTP id S264992AbTIDODc (ORCPT ); Thu, 4 Sep 2003 10:03:32 -0400 Date: Thu, 4 Sep 2003 10:05:19 -0400 (EDT) From: "Richard B. Johnson" X-X-Sender: root@chaos Reply-To: root@chaos.analogic.com To: Yann Droneaud cc: fruhwirth clemens , linux-kernel@vger.kernel.org Subject: Re: nasm over gas? In-Reply-To: <3F5741BD.5000401@mbda.fr> Message-ID: References: <20030904104245.GA1823@leto2.endorphin.org> <3F5741BD.5000401@mbda.fr> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1806 Lines: 50 On Thu, 4 Sep 2003, Yann Droneaud wrote: > fruhwirth clemens wrote: > > > Hi! > > > > I recently posted a module for twofish which implements the algorithm in > > assembler (http://marc.theaimsgroup.com/?l=linux-kernel&m=106210815132365&w=2) > > > > Unfortunately the assembler used is masm. I'd like to change that. Netwide > > Assembler (nasm) is the assembler of my choice since it focuses on > > portablity and has a more powerful macro facility (macros are heavily used > > by 2fish_86.asm). But as I'd like to make my work useful (aim for an > > inclusion in the kernel) I noticed that this would be the first module to > > depend on nasm. Everything else uses gas. > > > > So the question is: Is a patch which depends on nasm likely to be merged? > > > > I hope no ... > > Some years ago, we converted the only part of the kernel that used as86 > to GNU as: see arch/i386/boot. I think this was an improvement. > Using nasm for only one small piece of code would be a regression, imho. > > Regards. > > PS: GCC pass .S assembler source files through cpp, so you get macros > expanding. > GAS also has macro capability. It's just "strange". However, it does everything MASM (/ducks/) can do. It's just strange, backwards, etc. It takes some getting used to. If you decide to use gcc as a preprocessor, you can't use comments, NotGood(tm) because the "#" and some stuff after it gets "interpreted" by cpp. Cheers, Dick Johnson Penguin : Linux version 2.4.22 on an i686 machine (794.73 BogoMips). Note 96.31% of all statistics are fiction. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/