MPFR - RISCV
joel at rtems.org
Mon Oct 26 16:49:55 UTC 2020
On Mon, Oct 26, 2020 at 11:14 AM BAILLIEZ Damien <damien.bailliez at cea.fr>
> Hi everyone,
> I am considering using RTEMS for a project I am working on but I don’t
> know if it allows me to do the things I need.
> Is it possible, using RTEMS, to develop and run an application which uses
> the MPFR library on a RISCV architecture? I have read many pages on the
> website and I have not come across this information.
Just to make sure we are on the same page, I assume you mean MPFR from
Personally, I don't know anyone who has used it in an application but that
doesn't mean it won't work. It should be largely OS independent and
probably using some assembly for speed here and there.
Given that, I would assume that it can be cross-compiled pretty easily just
by making sure the settings are right. Using the rtems-source-builder,
there should be plenty of examples of building an autoconf based package to
target RTEMS. I picked curl as an example:
The first file gives specific location, hashes and patches needed for a
The last has the very specific templated build rules/steps for curl.
The middle file ties them together.
You will need to build and install a BSP to build mpfr against. But adding
an RSB recipe for MPFR shouldn't be difficult and I would expect it to just
> Sorry if the info was already out there somewhere and thank you in advance
> for any response.
> users mailing list
> users at rtems.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the users