<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 26, 2020 at 11:14 AM BAILLIEZ Damien <<a href="mailto:damien.bailliez@cea.fr">damien.bailliez@cea.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="FR">
<div class="gmail-m_-7901402444510989939WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi everyone,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">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.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">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.</span></p></div></div></blockquote><div><br></div><div>Just to make sure we are on the same page, I assume you mean MPFR from <a href="https://www.mpfr.org/">https://www.mpfr.org/</a>.</div><div><br></div><div>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. </div><div><br></div><div>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:</div><div><br></div><div>./rtems/config/ftp/curl-7.65.1-1.cfg<br>./rtems/config/ftp/curl.bset<br>./source-builder/config/curl-1.cfg<br></div><div><br></div><div>The first file gives specific location, hashes and patches needed for a specific version.</div><div><br></div><div>The last has the very specific templated build rules/steps for curl.</div><div><br></div><div>The middle file ties them together.</div><div><br></div><div>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.</div><div><br></div><div>--joel</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="FR"><div class="gmail-m_-7901402444510989939WordSection1"><p class="MsoNormal"><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Sorry if the info was already out there somewhere and thank you in advance for any response.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Damien</span><u></u><u></u></p>
</div>
</div>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org" target="_blank">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a></blockquote></div></div>