Hi Eric,

On Sun, Apr 06, 2008 at 11:32:19PM +0200, Eric Auer wrote:
> > Bochs bios is compiled with "bcc" and "as86".  I've ported it to "gcc"
> > and "gas".  I did convert most of the assembler to C code.
> Hmm thats a long page but I do not see the why of the Asm -> C there...?

Sorry - you didn't need to read the whole email chain.

My goal is to make the bios code accessible to more developers.  The
current code is, IMO, not maintainable.  (It has over 11,000 lines of
code in one file, and it is a random mix of C and assembler.)

My interest is with the coreboot project - to get a bios running on
real hardware.  In order for that to work, more developers will need
to be able to test, author, and debug code in the bios.

As to C vs Assembler - the existing code has plenty of C code.  It
also has plenty of assembler, but I think what was made assembler was
purely arbitrary.  Plenty of code paths that have no performance (or
stack) implications are written in asm.  Other paths, that clearly are
sensitive are written in C.  In particular, the code we've been
discussing (int 13) was written in C in bochs bios.

-Kevin

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to