Re: Announce: initrd-tftp 0.1

From: Werner Almesberger (almesber@lrc.di.epfl.ch)
Date: Sun Jan 09 2000 - 14:50:33 EST


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/



This archive was generated by hypermail 2b29 : Sat Jan 15 2000 - 21:00:14 EST