Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Thu, 3 Mar 2016 22:58:12 -0500
From: Rich Felker <>
Subject: musl risc-v port & gsoc - resources & ideas has been accepted into Google Summer of Code 2016, and has
porting musl to risc-v as one of the suggested projects:

I'm very hopeful that we'll make the port happen this year. In this
email I'd like to go over some resources that may be helpful to
students interested in applying, and some ideas for other tasks that
could be included in proposals.

The musl wiki contains a porting page with some useful but
not-entirely-up-to-date information on porting musl to a new arch.
This is a good starting point, and updating it could actually be part
of the gsoc project. See

Some information on recent changes can be found in the mailing list
archives. These threads pertain to changes to how ports are expected
to provide atomic primitives:

which was committed here:

and other subsequent commits with per-arch improvements.

And these cover the bits deduplication:

which was committed here:

Threads on the recent mips64 port work, which is almost ready for
merging, may also be helpful to read. It's broken up across several
threads but you can find most of the content in the January-March 2016

Since a port of musl to a new arch does not actually involve much
code, mainly attention to detail to make sure that all of the type
definitions/ABI/etc. are correct, I think that for a proposal to be
big enough to make a reasonable GSoC project, it should go beyond just
the basic porting. Some ideas for things to include would be:

- Improvement of porting documentation

- Feedback/patches on where there's too much redundancy between ports
  and how to reduce it (i.e. making improvements to musl that reduce
  the amount of code/headers needed for a new port).

- Patches for musl-cross and/or musl-cross-make (build systems for
  generating a cross-compiler toolchain) to make it easy to build a
  musl/riscv cross compiler.

- Optimizing performance-critical code like memcpy or floating point
  math functions for riscv.

- Improving test coverage, especially for things that are easy to get
  wrong in a new port.

I'll follow up with more ideas if I think of any.

Students interested in the project are welcome (and encouraged!) to
ask questions and discuss here on the musl list. Obviously everyone
should have in mind writing their own proposals but I want everyone to
have access to knowledge/resources/community for ideas.


Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.