From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Vikas N Kumar" Subject: Re: GCC port for Intel 8086, 80186 and 80286 Date: Fri, 31 Aug 2007 08:58:53 -0400 Message-ID: <792c60620708310558o2153050cga8be4e02a9dcf4f5@mail.gmail.com> References: <20070809205621.GN25795@sygehus.dk> <20070830151614.GJ25795@sygehus.dk> <37367b3a0708300943v6614801cp26111f8ff7378989@mail.gmail.com> <20070831004214.09464049@the-village.bc.nu> <46D7D343.6060201@gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received: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=IH+G42hb2+w1mEOLAPmDtymsfv3Z9dsbyHUZDa6tilIIJcnH6htd/qEEanwACYSj5j33pbseBXTb65zoKwo7bOLeuRZW56GzGioiY4ed5Gp3se2pyXhIVVim1xcxk9DIv7rgliEnes+obsHxPZqq/Xf8SEewYdKO2FHDlafB6Qg= In-Reply-To: <46D7D343.6060201@gmail.com> Content-Disposition: inline Sender: linux-8086-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii" To: Eddy Cc: ELKS You forget that assembler directives are different for Gnu Assembler (gas) and the bcc assembler. Not to forget the fact that gas accepts instructions like movl, movd etc and many other assemblers do not. they only accept mov, and figure out the size of the data based on the registers used as operands. It will have to be done manually and checked thoroughly. On 8/31/07, Eddy wrote: > Alan Cox wrote: > > On Thu, 30 Aug 2007 13:43:52 -0300 > > "Alan Carvalho de Assis" wrote: > > > > > > > > Well the first step to sanity would be moving the kernel code to the 8086 > > gcc, getting ansi prototypes and sane C. That means sorting the asm out > > with gcc asm which frankly scares me 8) > > - > > > > > I don't know very well what are the differences between the 2 codes, but > I think that is possible to use a recursive bash script to automatically > replace lines that have to be replaced and go. > I thought at something like this: > #!/bin/bash > > for i in `grep -R "text that is in files to be replaced" elks/* | cut > -f1-1 -d ":"` > do > sed -i -e 's,old code,new code,g' $i > sed -i -e 's,old code,new code,g' $i > ... > done > > It is a good idea? > I hope yes. > > > - > To unsubscribe from this list: send the line "unsubscribe linux-8086" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- http://www.vikaskumar.org/