From: SerP <serp256@gmail.com>
To: caml-list@inria.fr
Subject: Re: [Caml-list] ocaml arm eabi
Date: Wed, 29 Jun 2011 12:37:39 +0400 [thread overview]
Message-ID: <BANLkTimDWRDCbLuxMktmEmyCPFaUY6_HVQ@mail.gmail.com> (raw)
In-Reply-To: <wfhb794x5y.fsf@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3059 bytes --]
It's very strange. I'am disassembled binary.
ocaml "__fixdfsi" call resovled to "__aeabi_d2iz" and this function are the
same as in ios binary. But on android floating point does not work!
=== disassemly code: aeabi_d2iz from android libc
0002da7c <__aeabi_d2iz>:
2da7c: e1a02081 lsl r2, r1, #1
2da80: e2922602 adds r2, r2, #2097152 ; 0x200000
2da84: 2a00000c bcs 2dabc <__aeabi_d2iz+0x40>
2da88: 5a000009 bpl 2dab4 <__aeabi_d2iz+0x38>
2da8c: e3e03e3e mvn r3, #992 ; 0x3e0
2da90: e0532ac2 subs r2, r3, r2, asr #21
2da94: 9a00000a bls 2dac4 <__aeabi_d2iz+0x48>
2da98: e1a03581 lsl r3, r1, #11
2da9c: e3833102 orr r3, r3, #-2147483648 ; 0x80000000
2daa0: e1833aa0 orr r3, r3, r0, lsr #21
2daa4: e3110102 tst r1, #-2147483648 ; 0x80000000
2daa8: e1a00233 lsr r0, r3, r2
2daac: 12600000 rsbne r0, r0, #0 ; 0x0
2dab0: e12fff1e bx lr
2dab4: e3a00000 mov r0, #0 ; 0x0
2dab8: e12fff1e bx lr
2dabc: e1900601 orrs r0, r0, r1, lsl #12
2dac0: 1a000002 bne 2dad0 <__aeabi_d2iz+0x54>
2dac4: e2110102 ands r0, r1, #-2147483648 ; 0x80000000
2dac8: 03e00102 mvneq r0, #-2147483648 ; 0x80000000
2dacc: e12fff1e bx lr
2dad0: e3a00000 mov r0, #0 ; 0x0
2dad4: e12fff1e bx lr
=====
On Tue, Jun 28, 2011 at 10:40 PM, Wojciech Meyer <
wojciech.meyer@googlemail.com> wrote:
> SerP <serp256@gmail.com> writes:
>
> > Yes. it seems that the problem in android libc, but it is not clear
> > where exactly
>
> Did you try to disassemble/trace the program in the debugger of what
> possibly from libc is being inlined/called? Maybe it's some
> initialisation problem or most likely a wrong target. You compile for a
> none floating point capable hardware, try to write a simple program in
> gcc and see what happens. You can tell Gcc to compile for Cortex-A8 or
> ARM7 and that's a big difference the second one has no floating point
> unit built in. Could you post `gas' compile command line options?
>
> Cheers;
> Wojciech
>
> >
> > On Tue, Jun 28, 2011 at 10:02 PM, Pierre-Alexandre Voye
> > <ontologiae@gmail.com> wrote:
> >
> > Maybe an issue with android's libc which manage float in certain
> > circumstance ?
> >
> > Le 28 juin 2011 19:52, "SerP" <serp256@gmail.com> a écrit :
> >
> > ocaml 3.12.0
> >
> > On iphone it's work's too. But on android - gcc-4.4 it's not
> > working.
> >
> >
> >
> >
> > On Tue, Jun 28, 2011 at 7:30 PM, <rixed@happyleptic.org>
> > wrote:
> > >
> >
> > > -[ Tue, Jun 28, 2011 at 07:22:...
> >
> >
> >
>
[-- Attachment #2: Type: text/html, Size: 4211 bytes --]
prev parent reply other threads:[~2011-06-29 8:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-28 15:22 SerP
2011-06-28 15:30 ` rixed
2011-06-28 17:52 ` SerP
[not found] ` <BANLkTinQcixhGm2ZUW01CybUF_6Q_1rGRA@mail.gmail.com>
2011-06-28 18:02 ` Pierre-Alexandre Voye
2011-06-28 18:11 ` SerP
2011-06-28 18:40 ` Wojciech Meyer
2011-06-29 8:37 ` SerP [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BANLkTimDWRDCbLuxMktmEmyCPFaUY6_HVQ@mail.gmail.com \
--to=serp256@gmail.com \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox