Re: GCC port for Intel 8086, 80186 and 80286

"Vikas N Kumar" <[email protected]>
Newsgroups gmane.linux.ports.x8086
Message-ID <[email protected]>
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 <[email protected]> wrote:
> Alan Cox wrote:
> > On Thu, 30 Aug 2007 13:43:52 -0300
> > "Alan Carvalho de Assis" <[email protected]> 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 [email protected]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>


-- 
http://www.vikaskumar.org/
-
To unsubscribe from this list: send the line "unsubscribe linux-8086" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.