Kona with Musl libc?

162 views
Skip to first unread message

Dimonax

unread,
Jun 26, 2014, 5:43:02 AM6/26/14
to kona...@googlegroups.com
Has anyone tried building Kona against Musl-libc or tried porting it to an embedded environment?

I'm thinking about trying it with a Cortex-M4 processor.

I'm wondering how tiny I can make the K executable.

Also, anyone tried beefing up the K console for people wanting to use it as a system command shell? 

Regards,

Dimonax

Daniel Cegiełka

unread,
Jun 26, 2014, 5:48:18 AM6/26/14
to kona...@googlegroups.com
hi, you need

#include <sys/select.h>

in kc.h

kona works well against musl.

Daniel
> --
> You received this message because you are subscribed to the Google Groups
> "Kona Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to kona-dev+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Tom Szczesny

unread,
Jun 26, 2014, 8:36:42 AM6/26/14
to kona...@googlegroups.com
Some indication of how small the K executable can be made is given by the Kx versions:
the executable for k2.8 on Linux is 194KB.
the executable for k3.2 on Windows is 3KB with an associated dll that is 178KB.

To an extent, you can already use the k console as a system command shell.
Just prepend the command with a backslash
example:  the command "ls" would be "\ls".

Daniel Cegiełka

unread,
Jun 26, 2014, 8:57:23 AM6/26/14
to kona...@googlegroups.com
2014-06-26 14:36 GMT+02:00 Tom Szczesny <tav...@gmail.com>:
> Some indication of how small the K executable can be made is given by the Kx
> versions:
> the executable for k2.8 on Linux is 194KB.
> the executable for k3.2 on Windows is 3KB with an associated dll that is
> 178KB.
>

kona + musl

CFLAGS=-O3, LDFLAGS=-static -s: 378.7KB
CFLAGS=-O3, LDFLAGS=-s: 279.5KB

CFLAGS=-Os, LDFLAGS=-static -s: 250.2KB
CFLAGS=-Os, LDFLAGS=-s: 151.8KB

Daniel
Reply all
Reply to author
Forward
0 new messages