cancel
Showing results for 
Search instead for 
Did you mean: 

Floating point emulation and stack

ewitt
Associate II
Posted on September 14, 2006 at 08:38

Floating point emulation and stack

1 REPLY 1
ewitt
Associate II
Posted on September 14, 2006 at 08:38

Hi @all!

In one of my posts before I told u about a problem with floats when returning back to a ISR.

Assume that u have a function using float variables. From that function you call a second function also receiving and/or returning floating point variables. Because the emulation of both floats is running in the same memory the float variables get filled up with random values.

I prevented this behaviour by inlining the functions manipulating float.

Now i want to know if there is another way to solve this problem? (Expect inlining and working with fixed point aritmethic)

greets,

Erwin