Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

float values in StrongARM #2936

Closed
vicuna opened this issue Aug 30, 2001 · 2 comments
Closed

float values in StrongARM #2936

vicuna opened this issue Aug 30, 2001 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Aug 30, 2001

Original bug ID: 502
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Float values in the bytecode format seem not to be portable between
x86 (or SPARC) and StrongARM.

For example, running a piece of bytecode for the following:

 print_float 1.5

results in different outputs between x86 and StrongARM.

   Masatomo Hashimoto (masatomo@carc.aist.go.jp)
@vicuna
Copy link
Author

vicuna commented Aug 30, 2001

Comment author: administrator

Float values in the bytecode format seem not to be portable between
x86 (or SPARC) and StrongARM.
For example, running a piece of bytecode for the following:
print_float 1.5
results in different outputs between x86 and StrongARM.

Right. The ARM has a non-standard format for double-precision floats,
which is neither big-endian nor little-endian. E.g. the IEEE double
"1.5" is represented as
00 00 00 00 00 00 f8 3f
on a little-endian machine,
3f f8 00 00 00 00 00 00
on a big-endian machine, and
00 00 f8 3f 00 00 00 00
on the ARM.

OCaml can handle the little-endian/big-endian conversion, but that's all.

  • Xavier Leroy

@vicuna
Copy link
Author

vicuna commented Aug 30, 2001

Comment author: administrator

ARM has a non-standard float format (mixed-endian). Nothing we can do about it.

@vicuna vicuna closed this as completed Aug 30, 2001
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant