nanogui: Re: [uClibc]Re: MicroWindows and uC-libc


Previous by date: 28 Jul 2000 07:09:04 -0000 Re: MicroWindows and uC-libc, Ruiming Qin
Next by date: 28 Jul 2000 07:09:04 -0000 Re: MicroWindows and uC-libc, Ruiming Qin
Previous in thread: 28 Jul 2000 07:09:04 -0000 Re: [uClibc]Re: MicroWindows and uC-libc, Erik Andersen
Next in thread: 28 Jul 2000 07:09:04 -0000 Re: [uClibc]Re: MicroWindows and uC-libc, Ruiming Qin

Subject: Re: [uClibc]Re: MicroWindows and uC-libc
From: Ruiming Qin ####@####.####
Date: 28 Jul 2000 07:09:04 -0000
Message-Id:

On Thu Jul 27, 2000 at 12:30:11PM -0600, Greg Haerr wrote:
> : In the next few days I will try to build MicroWindows with uC-libc, in
> : order to get smaller binaries.
> 
> Romain - this is a GREAT idea.  I've been wanting to do
> this for quite some time.  I'll back you with any help I can.
> 
> 
> 
> : 
> : Is there any related work ? Do you think I will encouter big problems ?
> 
> I don't think anyone's worked on this yet, go for it! ;-)
> 
> 
> 
> 
> : 
> : Do you know where I could download a tarball of the uC-libc current
> : release ?
> 
> try opensource.lineo.com, I think I saw it there.

Yup.  And to avoid spamming the nanogui list, followups to
####@####.#### please.

If it works, please let me know -- I will be overjoyed.  I have recently made
some rather sweeping changes to uC-libc, which were done and tested only on
x86.  I have made some significant progress with the cross platform support
infrastructure (though not the actual cross-platform support itself I'm
afraid), removing kernel headers from the include files, making a proper
sysdeps area, etc.  These is still a bit of work needed to merge back in and
clean up all the architecture specific support files.

At this point, for example, the full version of busybox now compiles (though it
should be noted that it doesn't yet link due to a few missing functions).  For
apps that have all their needed functions supported, it is in pretty good
shape.  Also note that at the moment uC-libc only can be used for static
linking.  However, it does have some rather mighty advantages for embedded
systems:

    [andersen@slag test]$ make
    -------
    hello.c source:

    #include<stdio.h>
    #include <stdlib.h>

    int main(void)
    {
	printf("hello world\n");
	exit(42);
    }

    -------

    Compiling vs GNU libc:

    gcc -Wall -Os -fomit-frame-pointer -c hello.c -o hello_glibc.o
    gcc -s --static  --static hello_glibc.o -o hello_glibc
    strip --remove-section=.note --remove-section=.comment hello_glibc
    ldd hello_glibc
	    statically linked (ELF)
    ls -sh hello_glibc
    192k hello_glibc
    ./hello_glibc
    hello world
    make: [hello_glibc] Error 42 (ignored)

    -------

    Compiling vs uC-Libc:

    gcc -Wall -Os -fomit-frame-pointer -fno-builtin -nostdinc -I../include -I/usr/include/linux -c hello.c -o hello.o
    gcc -nostdlib -s -gc-sections hello.o -o hello ../libc.a
    strip --remove-section=.note --remove-section=.comment hello
    ldd hello
	    statically linked (ELF)
    ls -sh hello
    4.0k hello
    ./hello
    hello world
    make: [hello] Error 42 (ignored)

 -Erik

--
Erik B. Andersen   email:  ####@####.####
--This message was written using 73% post-consumer electrons--

---------------------------------------------------------------------
To unsubscribe, e-mail: ####@####.####
For additional commands, e-mail: ####@####.####


Previous by date: 28 Jul 2000 07:09:04 -0000 Re: MicroWindows and uC-libc, Ruiming Qin
Next by date: 28 Jul 2000 07:09:04 -0000 Re: MicroWindows and uC-libc, Ruiming Qin
Previous in thread: 28 Jul 2000 07:09:04 -0000 Re: [uClibc]Re: MicroWindows and uC-libc, Erik Andersen
Next in thread: 28 Jul 2000 07:09:04 -0000 Re: [uClibc]Re: MicroWindows and uC-libc, Ruiming Qin


Powered by ezmlm-browse 0.20.