cpuuse, rtmonuse and gcc (was: erc32 wrong compilation flags for initial task with fpu?)
Aleix Conchillo Flaqué
aconchillo at ieec.cat
Fri Mar 28 14:06:25 UTC 2008
I am using REMS 4.6.6 with the PR#1237 patch.
On Fri, Mar 28, 2008 at 2:58 PM, Joel Sherrill
<joel.sherrill at oarcorp.com> wrote:
> Jiri Gaisler wrote:
> > This is pretty bad. If the kernel uses floats, then compilation
> > with -msoft-float will not work if the application later is linked
> > without -msoft-float. Are the CPU_usage_Dump() and Period_usage_Dump()
> > new functions or have they always been around?
> I think our emails crossed. Older versions had floating
> point math if the FPU defined was set to TRUE.
>
> Newer versions have been rewritten to completely
> use integer math.
>
> So the question for Aleix is what version of RTEMS
> do you have? If it is the older FP using version,
> can you backport the integer version of the functions
> and post a patch.
>
> > Are there other
> > functions in the kernel that uses floats as well?
> >
> There are not supposed to be. But gcc has surprised
> us in the past by generating FP using code when you
> least expected it.
>
> So AFAIK "float/double" C types should not be found
> anywhere in the code except to declare the FP context
> structures anymore.
>
> --joel
>
More information about the users
mailing list