I believe MPFR is built directly inside gcc ("one tree style") when
you build the cross-compiler with the RTEMS Source Builder. So it
should "just work" but like Joel said I don't know if anyone has
tested it out.

On Tue, Oct 27, 2020 at 2:09 AM BAILLIEZ Damien <damien.baill...@cea.fr> wrote:
>
> Thank you for your response Joel, you understood me correctly. I will get 
> right on it then.
>
>
>
> Damien
>
>
>
> From: Joel Sherrill <j...@rtems.org>
> Sent: lundi 26 octobre 2020 17:50
> To: BAILLIEZ Damien <damien.baill...@cea.fr>
> Cc: users@rtems.org
> Subject: Re: MPFR - RISCV
>
>
>
>
>
>
>
> On Mon, Oct 26, 2020 at 11:14 AM BAILLIEZ Damien <damien.baill...@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@rtems.org
> http://lists.rtems.org/mailman/listinfo/users
>
> _______________________________________________
> users mailing list
> users@rtems.org
> http://lists.rtems.org/mailman/listinfo/users
_______________________________________________
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Reply via email to