emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Benchmarking temporary Lisp objects [Was: Re: [RFC] temporary Lisp_S


From: Dmitry Antipov
Subject: Re: Benchmarking temporary Lisp objects [Was: Re: [RFC] temporary Lisp_Strings]
Date: Thu, 04 Sep 2014 09:51:48 +0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0

On 09/04/2014 09:13 AM, Paul Eggert wrote:

How about something like this?

No, I'm talking about the case when we can't us __attribute__ ((aligned (X))).
Because if we can, there is no problem at all:

#define _GC_ALIGNED_ __attribute__ ((aligned (GCALIGNMENT)))

struct _GC_ALIGNED_ Lisp_Cons
  {
    ...;
  };

#define scoped_cons(car, cdr)                                   \
  make_lisp_ptr (&((struct Lisp_Cons) { car, { cdr } }), Lisp_Cons)

Dmitry





reply via email to

[Prev in Thread] Current Thread [Next in Thread]