This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
floating point problem
- To: <ecos-discuss at sourceware dot cygnus dot com>
- Subject: [ECOS] floating point problem
- From: "Rini van Zetten" <Rini at Arvoo dot nl>
- Date: Thu, 1 Nov 2001 14:16:24 +0100
Hello all,
I'm a newbie to ecos and just do some simple test.
I have create a redboot boot floppy for my i386 target, this works fine.
I'm able to compile and run the examples (eg hello.c).
But if i want to do some tests with a float in it. the sample crashes :
It even crashes if i only declare a var as float.
It crashes in clits.hxx (line109) :Segmentation fault
Anyone an idee what i'm doing wrong ?
/* this is a simple hello world program */
#include <stdio.h>
int main(void)
{
float f=0.0123;
int i=1244;
//i = f*1000;
printf("Hello, eCos world!, f=%d \n",i);
return 0;
}
Rini