rchampe@hubcap.UUCP (Richard Champeaux) (09/14/88)
I've been having a problem using sdb and m.lib which is the Motorola
Fast Floating Point library. With the following program:
#include <math.h>
main()
{
float a;
a=1;
printf("a = %f\n",a);
}
compiled with
cc -n ft.c
linked with
ln -g ft.o -lm -lc
The Program runs correctly and prints "a = 1.000000". However when I run
it with sdb, after executing the "a=1;" line, typing "p a" prints:
float a = -5.8775173e-39
but when the printf() is executed, it still prints out "a = 1.000000".
Everything works just fine when you use one of the IEEE double precision
libraries, so sdb just doesn't know how to print a Motorola floating point
number (don't they use different formats?)
Not a big problem, unless of course it's 1:00 at night and you're working
on something due at 8:00 in the morning :-)
Rich Champeaux
Clemson University