unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Stephen J. Turnbull" <stephen@xemacs.org>
Cc: emacs-devel@gnu.org
Subject: Re: malloc and alignment
Date: Tue, 17 Jun 2003 13:48:44 +0900	[thread overview]
Message-ID: <87adchwbpv.fsf@tleepslib.sk.tsukuba.ac.jp> (raw)
In-Reply-To: <200306161438.h5GEcodM011551@rum.cs.yale.edu> (Stefan Monnier's message of "Mon, 16 Jun 2003 10:38:50 -0400")

>>>>> "Stefan" == Stefan Monnier <monnier+gnu/emacs@rum.cs.yale.edu> writes:

    Stefan> I'd like to try and get rid of the markbit on Lisp_Object
    Stefan> values.  The idea is to scrape off a few more bits (I'd
    Stefan> like to bump maxint to 512MB instead of 128MB).  And I'd
    Stefan> also like to represent floats in 8bytes rather than 12.

Er, have you talked to Kyle Jones <kyle_jones@wonderworks.com>, Martin
Buchholz <martin@xemacs.org>, or Olivier Galibert <galibert@xemacs.org>?
It sounds like your goals are different, but XEmacs went through this
process about 5 years ago (how time flies, make that 7!).  XEmacs has
31-bit integers, but at the cost of conses being indirect objects.  IIRC,
those guys were the ones who designed and implemented the new system.

Actually, if you are happy with character is-a int (up to now, you
have been, but Ken'ichi recently made some noises about a true
character type) you might be able to stuff the cons type in instead of
characters.  I'm not sure how you'd handle marking (maybe you could
use the tagbits in the cdr, or the integer bit?) but that might be a
way to go.  That doesn't help with the floats, unfortunately (or does
it? I guess you're not using platform floats directly?)

Even though the goals are different, those guys would certainly have a
lot to say about possible pitfalls, and maybe have some ideas about
how to extend this to the situation where you want more tagbits than
the "natural" alignment (of a pointer to Lisp_Object).

-- 
Institute of Policy and Planning Sciences     http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba                    Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
               Ask not how you can "do" free software business;
              ask what your business can "do for" free software.

  parent reply	other threads:[~2003-06-17  4:48 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-16 14:38 malloc and alignment Stefan Monnier
2003-06-16 15:15 ` David Kastrup
2003-06-16 15:39   ` Stefan Monnier
2003-06-16 15:59   ` Stefan Monnier
2003-06-17  4:57     ` Stephen J. Turnbull
2003-06-17  7:35       ` David Kastrup
2003-06-16 22:35 ` Miles Bader
2003-06-16 23:11   ` Stefan Monnier
2003-06-17  2:25     ` Miles Bader
2003-06-17  4:48 ` Stephen J. Turnbull [this message]
     [not found] ` <E19SJCe-0008Bb-Vp@fencepost.gnu.org>
2003-06-24 22:52   ` Stefan Monnier
     [not found]     ` <E19VGK5-0000CQ-F4@fencepost.gnu.org>
2003-06-27 23:17       ` Stefan Monnier
2003-06-27 23:47         ` Miles Bader
2003-06-29  2:30         ` Richard Stallman
2003-07-04 20:42           ` Stefan Monnier

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/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87adchwbpv.fsf@tleepslib.sk.tsukuba.ac.jp \
    --to=stephen@xemacs.org \
    --cc=emacs-devel@gnu.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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).