caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jeffrey Scofield <jeffsco@psellos.com>
To: Benedikt Meurer <benedikt.meurer@googlemail.com>
Cc: Jeffrey Scofield <jeffsco@psellos.com>, Caml List <caml-list@inria.fr>
Subject: [Caml-list] ARM code generator problem
Date: Sat, 11 Aug 2012 01:52:52 -0700	[thread overview]
Message-ID: <1CF2B468-6990-415C-91D3-66CF380CF4CA@psellos.com> (raw)
In-Reply-To: <EEE012FC-518B-4F89-9992-69E0958BF8CE@gmail.com>

Benedikt,

> If you look at destroyed_at_oper in asmcomp/arm/proc.ml, you'll see that
> d7 (s14+s15) is marked as destroyed for those operations where it is
> used as scratch register.

I definitely see d7 being overwritten in the way I described, and I
don't think I've changed these parts of the code.  Most of the work
was in reformatting the output for the iOS assembler.  There are
some smallish changes to the linkage for calling functions like
sin() and cos().

I'll look to see how destroyed_at_oper is working, maybe it will
explain things.

I made a pretty small file (35 lines or so) that shows the problem.
Unfortunately, I don't have access to a Linux/ARM machine, so I can't
easily try it on an unmodified version of OCaml 4.00.0.  If I still
think there's a problem after figuring out destroyed_at_oper, I'll send
you a description in private mail.

> If possible, it would probably also make sense to merge some of the iOS
> related code into the upstream ARM backend, in case you are interested.

I'd definitely be interested, once I get things working reasonably well.

Thanks for the help.

Jeffrey


  parent reply	other threads:[~2012-08-11  8:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-10 21:41 Jeffrey Scofield
2012-08-11  8:00 ` Benedikt Meurer
2012-08-11  8:13   ` Benedikt Meurer
2012-08-11  8:57     ` Jeffrey Scofield
2012-08-11  9:48       ` [Caml-list] " Benedikt Meurer
2012-08-11  8:52   ` Jeffrey Scofield [this message]
2012-08-13 19:21   ` Jeffrey Scofield
2012-08-14  7:11     ` Benedikt Meurer
2012-08-17  4:26       ` Jeffrey Scofield

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=1CF2B468-6990-415C-91D3-66CF380CF4CA@psellos.com \
    --to=jeffsco@psellos.com \
    --cc=benedikt.meurer@googlemail.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;
as well as URLs for NNTP newsgroup(s).