Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

8051 C/C++ compiler with double precision support

Status
Not open for further replies.

waligora33

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!
 

bobsanjose

Advanced Member level 1
Joined
Jan 13, 2006
Messages
416
Helped
56
Reputation
112
Reaction score
21
Trophy points
1,298
Location
Silicon Valley
Activity points
5,228
Hi,

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

Bob
 

eng_ahmed22

Full Member level 4
Joined
Jun 7, 2005
Messages
190
Helped
20
Reputation
40
Reaction score
5
Trophy points
1,298
Activity points
2,944
hi :)
keil is very good for this, i use it, and also its simulation will help u
bye
Ahmed
 

waligora33

Newbie level 3
Joined
Oct 10, 2004
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
37
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!
 

Eskimo

Member level 1
Joined
Apr 9, 2002
Messages
34
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
183
Raisonance compiler has double float too.
 

waligora33

Newbie level 3
Joined
Oct 10, 2004
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
37
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

Top