lkml.org 
[lkml]   [2000]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Announce: initrd-tftp 0.1
Date
Erik Andersen wrote:
> Don't forget that when run as an initrd, it would have to be staticly
> linked against libc and friends (making it at weigh in at about 300k),
> or it has to be assembler -- very small but throwing out cross-platform
> portability, and making it subject to kernel interface changes.

Or you just implement those few libc functions you really need. For an
example, look at the micro-shell I once wrote for the linux-7k project,
when I didn't even have a libc to link with:
ftp://lrcftp.epfl.ch/pub/people/almesber/psion/ush-2.tar.gz

$ arm-linux-size ush.arm
text data bss dec hex filename
1980 0 4 1984 7c0 ush.arm

Also, there are probably plenty of libc functions that don't pull in
huge additional components, so you don't really have to do everything
yourself.

- Werner

--
_________________________________________________________________________
/ Werner Almesberger, ICA, EPFL, CH werner.almesberger@ica.epfl.ch /
/_IN_N_032__Tel_+41_21_693_6621__Fax_+41_21_693_6610_____________________/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.152 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site