From: Doug Evans <dje@transmeta.com>
To: Michael Meissner <cgen-mail@the-meissners.org>
Cc: cgen@sources.redhat.com
Subject: Use of DI mode on 32-bit hosts
Date: Mon, 02 Jun 2003 17:45:00 -0000 [thread overview]
Message-ID: <16091.36137.249864.565465@casey.transmeta.com> (raw)
In-Reply-To: <20030602173232.GA5871@tiktok.the-meissners.org>
Michael Meissner writes:
> Where is the decision made about the sizes of integer (particularly whether DI
> mode is available on 32-bit systems)? Is it in the scheme interpreter or is it
> in the scm code? Is there any configure option to say assume we are using GCC
> and that long long (or __attribute__((__mode__(__DI__)))) is available?
I'm guessing you're refering to host tool issues instead of
target architecture issues.
Assuming that's the case ...
It's up to each application to choose how it wants to do this.
cgen proper does not get involved.
To pick an arbitrary example of the m32r simulator in src/sim,
the code generators just always emit DI for the type, and then leave it
to other code to decide whether to make DI an integral type or a struct.
DI_FN_SUPPORT gets defined if the host compiler doesn't have a suitable
integral mode for DI's, which in turn is based on HAVE_LONGLONG.
From cgen-types.h:
#ifdef __GNUC__
#define HAVE_LONGLONG
#undef DI_FN_SUPPORT
#else
#undef HAVE_LONGLONG
#define DI_FN_SUPPORT
#endif
And in cgen-ops.h different versions of the DI mode operations
get used depending on ifdef DI_FN_SUPPORT.
No claim is made that the !ifdef version is well tested recently.
I do remember it working way back when though.
Which application did you have in mind?
next prev parent reply other threads:[~2003-06-02 17:45 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-02 17:32 Michael Meissner
2003-06-02 17:45 ` Doug Evans [this message]
2003-06-02 19:22 ` Michael Meissner
2003-06-02 20:44 ` Doug Evans
2003-06-02 20:50 ` Frank Ch. Eigler
2003-06-02 21:26 ` Doug Evans
2003-06-02 21:32 ` Frank Ch. Eigler
2003-06-02 22:04 ` Doug Evans
2003-06-03 15:19 ` Frank Ch. Eigler
2003-06-02 21:33 ` Michael Meissner
2003-06-02 22:10 ` Doug Evans
2003-06-02 22:16 ` Doug Evans
2003-06-04 20:27 ` Doug Evans
2003-06-05 11:51 ` Michael Meissner
2003-06-05 13:34 ` Ben Elliston
2003-06-05 15:41 ` Doug Evans
2003-06-05 16:04 ` Doug Evans
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=16091.36137.249864.565465@casey.transmeta.com \
--to=dje@transmeta.com \
--cc=cgen-mail@the-meissners.org \
--cc=cgen@sources.redhat.com \
/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 read-only IMAP folder(s) and NNTP newsgroup(s).