Floating point support in ARM926ejs

Amarnath MB amarnath.mb at mistralsolutions.com
Sat Jan 5 06:47:50 UTC 2019


joel,

Inside the tests, I''m not getting an integer only printf(). It simply
prints format specifier as such i.e. %f.
Yes, Sebastian is right, Thanks for the help, is it anywhere documented
that samples will be using a different set of
implementation for stdio or any other standard library calls? Since I'm new
to RTEMS I assumed that samples will
behave exactly the same as my application.

*Thank you & Regards,*
*Amarnath MB*



On Sat, Jan 5, 2019 at 3:27 AM Joel Sherrill <joel at rtems.org> wrote:

>
>
> On Fri, Jan 4, 2019 at 6:57 AM Amarnath MB <
> amarnath.mb at mistralsolutions.com> wrote:
>
>> Hi,
>>
>> Tried building sample application using Makefile.inc from the BSP
>> installed path,
>> there I'm able to get %f values properly (*Data : **1.123400*).
>>
>
> Then Sebastian is right. Inside the tests, you are getting an integer only
> printf().
>
> --joel
>
>> *Thank you & Regards,*
>> *Amarnath MB *
>>
>>
>>
>> On Fri, Jan 4, 2019 at 3:49 PM Amarnath MB <
>> amarnath.mb at mistralsolutions.com> wrote:
>>
>>> Hi,
>>>
>>> I have made a copy of hello sample and added my testcodes to it.
>>> I have also added '#define CONFIGURE_INIT_TASK_ATTRIBUTES
>>> RTEMS_FLOATING_POINT'
>>> before #include <rtems/confdefs.h>
>>>
>>> *Thank you & Regards,*
>>> *Amarnath MB*
>>>
>>>
>>>
>>> On Fri, Jan 4, 2019 at 3:44 PM Sebastian Huber <
>>> sebastian.huber at embedded-brains.de> wrote:
>>>
>>>> On 04/01/2019 11:08, Amarnath MB wrote:
>>>> > Currently, I'm facing an issue with floating point values, in my test
>>>> > Init.c file I have added a simple printf statement like below,
>>>> > *float data = 1.234;
>>>> > printf("Data : %f\n", data);*
>>>> > After loading the test executable, I'm getting the print as '*Data :
>>>> > %f*' in the console.
>>>>
>>>> Do you use your own build system or did you modify the samples? In the
>>>> RTEMS test suite some output function like printf() are wrapped by the
>>>> linker to an alternative implementation without floating point support.
>>>>
>>>> --
>>>> Sebastian Huber, embedded brains GmbH
>>>>
>>>> Address : Dornierstr. 4, D-82178 Puchheim, Germany
>>>> Phone   : +49 89 189 47 41-16
>>>> Fax     : +49 89 189 47 41-09
>>>> E-Mail  : sebastian.huber at embedded-brains.de
>>>> PGP     : Public key available on request.
>>>>
>>>> Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
>>>>
>>>> _______________________________________________
>> 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/20190105/dd63ae84/attachment.html>


More information about the users mailing list