MPFR - RISCV
Joel Sherrill
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>
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
https://www.mpfr.org/.
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:
./rtems/config/ftp/curl-7.65.1-1.cfg
./rtems/config/ftp/curl.bset
./source-builder/config/curl-1.cfg
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.
--joel
>
> Sorry if the info was already out there somewhere and thank you in advance
> for any response.
>
>
>
> Regards,
>
> Damien
> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20201026/5b48efe5/attachment.html>
More information about the users
mailing list