BAILLIEZ Damien damien.bailliez at
Tue Oct 27 08:09:24 UTC 2020

Thank you for your response Joel, you understood me correctly. I will get right on it then.


From: Joel Sherrill <joel at>
Sent: lundi 26 octobre 2020 17:50
To: BAILLIEZ Damien <damien.bailliez at>
Cc: users at
Subject: Re: MPFR - RISCV

On Mon, Oct 26, 2020 at 11:14 AM BAILLIEZ Damien <damien.bailliez at<mailto:damien.bailliez at>> wrote:
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 specific version.

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 build.


Sorry if the info was already out there somewhere and thank you in advance for any response.

users mailing list
users at<mailto:users at>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the users mailing list