From: Phil Muldoon <pmuldoon@redhat.com>
To: Andrew Cagney <cagney@redhat.com>
Cc: Frysk Hackers <frysk@sourceware.org>
Subject: Re: ISA checks for factories
Date: Tue, 09 Oct 2007 07:53:00 -0000 [thread overview]
Message-ID: <470B3361.90608@redhat.com> (raw)
In-Reply-To: <4703F084.8050301@redhat.com>
Andrew Cagney wrote:
> Phil,
>
> There is now also:
> ISA isa = task.getISA()
> which returns a frysk.isa.ISA, which looks smells and behaves like an
> ENUM. This new ISA just the following attributes:
> - family (i386, x8664, PPC)
> - word size (4, 8)
> - byte order (little, big)
> leading to the combinations: IA32, X8664, PPC32LE, PPC32BE, PPC64LE,
> PPC64BE.
>
Ok that makes sense, I got that from the original email, but ...
> or better?:
>
> ISAMap map = new ISAMap("why am I here")
> .put(ISA.IA32, new My(IA32))
> .put(ISA.X8664, new My(X8664))
> ;
> ...
> // Throws a RuntimeException if ISA missing
> My o = (My) map.get(task.getISA);
>
>
I'm still a little fuzzy on how it can be used to detected IA 32 on 64,
or PPC32 On 64?
Regards
Phil
next prev parent reply other threads:[~2007-10-09 7:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-03 8:36 Phil Muldoon
2007-10-03 19:43 ` Andrew Cagney
2007-10-09 7:53 ` Phil Muldoon [this message]
2007-10-09 9:16 ` Phil Muldoon
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=470B3361.90608@redhat.com \
--to=pmuldoon@redhat.com \
--cc=cagney@redhat.com \
--cc=frysk@sourceware.org \
/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).