From: Andy Wingo <wingo@pobox.com>
To: Ken Raeburn <raeburn@raeburn.org>
Cc: guile-devel <guile-devel@gnu.org>
Subject: Re: redoing SCM representation in 2.2
Date: Sun, 15 May 2011 17:47:09 +0200 [thread overview]
Message-ID: <m3r580aruq.fsf@unquote.localdomain> (raw)
In-Reply-To: <2932B3D9-7CE6-46B9-8A1E-51702E417D53@raeburn.org> (Ken Raeburn's message of "Sun, 15 May 2011 05:00:07 -0400")
On Sun 15 May 2011 11:00, Ken Raeburn <raeburn@raeburn.org> writes:
> So... Guile 2.2 won't work on the VAXstation in my basement, which
> doesn't do IEEE math? :-(
> (Not that I've powered it up in some time...)
I have no idea.
However... note that GCC obsoleted all vax ports but openbsd and netbsd
in 4.3, removed them in 4.4, and just obsoleted it on netbsd recently I
think. Just saying :)
> Guess I hadn't thought about that before; we've got code that refers to
> IEEE floating point already, so does that mean we require IEEE floating
> point already?
Probably? I hope so? :) I think I'm too young to know about pre-ieee
FP :)
> On 64-bit SPARC and perhaps some other architectures, we'd be dependent
> on the OS only effectively using 48 bits worth of address space even if
> the hardware supports more. I'd be surprised if we encounter a program
> that needs more storage than that, and I expect most current OSes will
> tend to have a couple of regions growing toward each other rather than
> scatter stuff all over the address space, but I could imagine a
> particularly naïve or aggressive form of address space layout
> randomization trying to take advantage of all 64 bits by scattering
> mapped memory throughout all 2**64 addresses (minus whatever the kernel
> uses), for libraries or heap allocation or both.
Yes, indeed.
> If the 64-bit SCM type isn't required to represent the full range of
> integer values the machine can support as immediate values, does it
> really have to encompass the full range of "double" values?
No, but the nice thing about doubles is that it's a closed set. Any
operation on a double produces a double. Subsets do not have that
property.
>> I think we need to do the JSC way, as it appears to be the only way to
>> work with the BDW GC, currently anyway. We will need some integration
>> with the GC to ensure the 48-bit space, but that should be doable.
>
> Don't we have some objects now which can be initialized statically by
> the compiler, and for which the addresses get encoded directly into the
> resulting SCM objects?
Yes, though this is optional. We could whitelist some set of platforms
for which this can work.
FWIW I plan on moving objcode to be ELF in 2.2, which will mean we write
our own loader for ELF, so we would have similar concerns about mapping
the file in the right address range.
Regards,
Andy
--
http://wingolog.org/
next prev parent reply other threads:[~2011-05-15 15:47 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-12 10:17 redoing SCM representation in 2.2 Andy Wingo
2011-05-12 11:12 ` nalaginrut
2011-05-12 12:50 ` Stefan Israelsson Tampe
2011-05-13 22:08 ` Mark H Weaver
2011-05-14 9:47 ` Andy Wingo
2011-05-15 9:02 ` Ken Raeburn
2011-05-15 15:35 ` Andy Wingo
2011-05-15 9:00 ` Ken Raeburn
2011-05-15 15:47 ` Andy Wingo [this message]
2011-05-15 20:43 ` Ken Raeburn
2011-05-16 9:40 ` Andy Wingo
2011-05-17 18:59 ` Mark H Weaver
2011-05-19 7:58 ` Ken Raeburn
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
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3r580aruq.fsf@unquote.localdomain \
--to=wingo@pobox.com \
--cc=guile-devel@gnu.org \
--cc=raeburn@raeburn.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).