Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

Libc Version : none

Hello

Following the guide uClinuxDist, i am in the menu (make menuconfig).

I wonder why do i have to select "Libc Version" to "none" ?

Actually, if no library is available in the kernel, no programs (compiled separatly) will run on the embedded board.

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    The NoMMU version of uCLinux NIOS does not support so libraries, so there is no "compiled separately".

    -Michael
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I think i have understand, Michael.

    There is no dynamic library (.so) in the NoMMU version of uCLinux for NIOSII because we select none in the libc menu.

    So the programs that will run on the board can't use dynamic libraries. They have to use a static library : the uclibc compiled with the cross toolchain, the uclibc library archive (.a).

    And the resulting compilation of the program is so bigger than with dynamic libraries.

    Is it right ?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    AFGAIK, this is correct, but with small embedded devices there there usually are not many different programs (Busybox help to make this happen). And the combined size of a dynamically linked program and the necessary so files usually is a lot bigger than the statically linked program. So here dynamical linking does not make much sense.

    -Michael