Forum Discussion

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

How to make kernel-less monolithic executables

Hello,

I would like to run a small socket-based communication program on a Nios II processor.

This program calls some uClinux functions: socket(), setsocketopt(), connect(), bind(), send(), and recv().

Is it possible to link these modules into a signle kernel-less executable (a standalone executable without the kernel) ?

I would like to find a way to reduce the size of the executables.

Any information would be appreciated.

Sekiyama

1 Reply

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

    Hi sekiyama,

    If the size of the executable is your major concern, you can check lwIP with MicroC/OS II to see if it meets your requirements. As I know, lwIP has a BSD socket like API, similar to what you get from uClinux. And I am sure the application can be very small.

    Regards,

    wentao