all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Arthur Miller <arthur.miller@live.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org, akrl@sdf.org
Subject: Re: Q: What is default architecture for code produced by native compiler?
Date: Thu, 26 Aug 2021 01:26:30 +0200	[thread overview]
Message-ID: <AM9PR09MB49774ABF82E34C60E3B160F496C69@AM9PR09MB4977.eurprd09.prod.outlook.com> (raw)
In-Reply-To: <83pmu1vjzh.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 25 Aug 2021 14:31:30 +0300")

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Arthur Miller <arthur.miller@live.com>
>> Date: Wed, 25 Aug 2021 03:13:49 +0200
>> Cc: emacs-devel@gnu.org
>> 
>> >> If it is generic, do we have option to pass in arch and cpu flags?
>> >
>> > No we don't, even if we could expose it using
>> > 'gcc_jit_context_add_command_line_option' for non obsolete versions of
>> > GCC.
>> 
>> Allright, is there any interest to expose this? :-)
>> 
>> We could have a defcustom in comp.el, either some boolean like:
>> "native-comp-prefer-host-cpu"
>
> What's wrong with using native-comp-driver-options?
>
> I'm also curious why you want to mess with that.  Do you use the
> equivalent GCC switches when compiling Emacs?  If so, why?
Yes, I do, I compile Emacs with -O3 -march=native and -mcpu=native

Hopefully gcc will emit some AVX instructions where possible. I haven't
dissasembled Emacs binary so I don't know how big is difference between generic
and native.

>> To be honest, I have no idea if there is much if anything to win in speed in elisp context,
>> between generic and skylake
>
> My guess would be nothing.

Probably. Depends on the problem and data I guess.



  reply	other threads:[~2021-08-25 23:26 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-24 19:29 Q: What is default architecture for code produced by native compiler? Arthur Miller
2021-08-24 20:11 ` Andrea Corallo via Emacs development discussions.
2021-08-25  1:13   ` Arthur Miller
2021-08-25 11:31     ` Eli Zaretskii
2021-08-25 23:26       ` Arthur Miller [this message]
2021-08-26  6:57         ` Eli Zaretskii
2021-08-26  8:02           ` martin rudalics
2021-08-26  8:16             ` Eli Zaretskii
2021-08-26 16:02               ` Arthur Miller
2021-08-26 16:29                 ` Eli Zaretskii
2021-08-26 17:54                   ` Arthur Miller
2021-08-26 15:59             ` Arthur Miller
2021-08-26 15:58           ` Arthur Miller
2021-08-26 16:27             ` Eli Zaretskii
2021-08-26 17:52               ` Arthur Miller
2021-08-25  2:49   ` Arthur Miller
2021-08-25  7:36     ` Andrea Corallo via Emacs development discussions.
2021-08-25 12:04       ` Eli Zaretskii
2021-08-25 13:04         ` Andrea Corallo via Emacs development discussions.
2021-08-25 13:11           ` Eli Zaretskii
2021-08-25 13:19             ` Andrea Corallo via Emacs development discussions.

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=AM9PR09MB49774ABF82E34C60E3B160F496C69@AM9PR09MB4977.eurprd09.prod.outlook.com \
    --to=arthur.miller@live.com \
    --cc=akrl@sdf.org \
    --cc=eliz@gnu.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.