bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nbi : what kind of support do you wish ?


From: Thierry Laronde
Subject: Re: nbi : what kind of support do you wish ?
Date: Fri, 26 Jan 2001 14:12:07 +0100
User-agent: Mutt/1.2.5i

On Fri, Jan 26, 2001 at 12:19:28PM +0900, OKUJI Yoshinori wrote:
> From: Thierry Laronde <address@hidden>
> Subject: Re: nbi : what kind of support do you wish ?
> Date: Thu, 25 Jan 2001 09:19:43 +0100
> 
                                                              
> 
> > Other question. What do you think about trying to stick as much as possible
> > with a look and names of libraries conforming to standard libc, so that 
> > perhaps, in the future ? compilation of stage2 or grub could be made not 
> > via 
> > defines but with the option given to the compiler about the path of 
> > libraries 
> > (say OS standard for grub, and ./include for stage2) ? 
> 
> That's meaningless. The purpose of the grub shell is to emulate the
> native GRUB image (i.e. stage2), so using another library would make
> it just harder to debug GRUB.

That's not exactly what I have in mind. [in the following don't keep grub
shell in mind]. 

For example, the string functions involve actions that are
not OS dependent. I have made some tests by taking the source of the glibc
for the some functions, say strcmp, and replacing grub_strcmp with a
slightly modified strcmp source taken from GNU libc. There are some
optimizations in the code that are a benefit for GRUB, and glibc is meant to
build on different architectures, so it's also a good way to take care of
possible extensions to something else than x86.

But, BTW and for this example, why not put the slightly modified GNU libc
source code for strings functions apart from char_io.c, in that way
reproducing the kind of separation that can be found in standard libc ?
-- 
Thierry LARONDE, Centre de Ressources Informatiques, Archamps - France
http://www.cri74.org
PingOO, serveur de com sur distribution GNU/Linux: http://www.pingoo.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]