all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ken Raeburn <raeburn@raeburn.org>
To: Emacs Dev <emacs-devel@gnu.org>
Subject: Re: immediate strings #2
Date: Mon, 28 Nov 2011 19:57:23 -0500	[thread overview]
Message-ID: <D8926E70-0BED-47F0-B66C-E3FF074C8A3E@raeburn.org> (raw)
In-Reply-To: <m2sjl7yjea.fsf@igel.home>

On Nov 28, 2011, at 17:25, Andreas Schwab wrote:
> Stefan Monnier <monnier@IRO.UMontreal.CA> writes:
> 
>> Not that it's relevant to Emacs, but I don't know which part of the
>> C standard would force a C compiler to layout all unions at an
>> "addressable" offset.
> 
> 6.7.2.1#13

Well, I think Stefan's technically right... the "as-if" rule lets the compiler get away with a lot, if it can analyze enough of the program to figure out that it wouldn't make a difference to the semantics ("no one will notice", as Stefan put it).  For example, gcc can make some variables that have their addresses taken still live in registers anyways.  But few or none of the compilers we care about right now will do that when dealing with structure layouts and multiple source files as in Emacs; they'll implement something close enough to the abstract machine description in the standard that the union would have to be addressable.

Ken


  reply	other threads:[~2011-11-29  0:57 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-28  9:11 immediate strings #2 Dmitry Antipov
2011-11-28 17:33 ` Stefan Monnier
2011-11-28 19:48   ` Ken Raeburn
2011-11-28 20:10   ` Andreas Schwab
2011-11-28 21:54     ` Stefan Monnier
2011-11-28 22:25       ` Andreas Schwab
2011-11-29  0:57         ` Ken Raeburn [this message]
2011-11-29  8:44           ` Andreas Schwab
2011-11-29 15:48             ` Ken Raeburn
2011-11-29 16:08               ` Andreas Schwab
2011-11-30 16:43                 ` Ken Raeburn
2011-11-28 22:18   ` Paul Eggert
2011-11-29  2:07     ` Stefan Monnier
2011-11-29  3:37       ` Dmitry Antipov
2011-11-29  8:50       ` Paul Eggert
2011-11-30  5:37         ` Dmitry Antipov
2011-11-30  9:35           ` Paul Eggert
2011-11-30 16:43             ` Ken Raeburn
2011-11-30 21:44               ` Paul Eggert
2011-11-29  3:17     ` Dmitry Antipov
2011-11-29  5:29   ` Dmitry Antipov

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=D8926E70-0BED-47F0-B66C-E3FF074C8A3E@raeburn.org \
    --to=raeburn@raeburn.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.