Continue to Site

8051 C/C++ compiler with double precision support

Status
Not open for further replies.

waligora33

Newbie level 3
Newbie level 3
Joined
Oct 10, 2004
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
37
c++ compiler double precision

Hi all,

Does anybody have an experience with CEIBO c++ compiler which supports double precision numbers in 8051? I mean is this compiler really supports double (64-bit) or just treating it as float?

I need to find some C compiler which works with 8051 and has double precision support.
Any help is really appreciated.
Thanks!
 

Hi,

the Keil compiler supports double precision, please declare as FLOAT 64

Bob
 

hi :)
keil is very good for this, i use it, and also its simulation will help u
bye
Ahmed
 

Thanks!

I checked Ke*il web site and double type (in PK51) is supported lexically only, and in fact it is compiled as float type 32-bit :(
What you mean as FLOAT 64?
Can you show me what should I change in this simple example.

struct ll{
long e;
long m;
};

union dll {
double d;
struct ll l;
};

volatile union dll dv1;
volatile union dll dv2;
volatile union dll dres;

void main()
{

dv1.d=3.0e50;
dv2.d=4.0e60;

dres.d= dv1.d+dv2.d;
while(1);

}

Thanks again!
 

Raisonance compiler has double float too.
 

Hi,

Raisonance doesn't support IEEE-754 double, but
it supports BCD type double where mantissa is 5 Bytes and exponent is 6-bit only.
I checked it with actual version of its C 8051 tool.

I'm looking for IEEE-754 double (8 bytes) format support.

Still searching a solution....
Any advise is really apreciated.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top