emacs-devel
[Top][All Lists]
Advanced

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

Re: Q: What is default architecture for code produced by native compiler


From: Eli Zaretskii
Subject: Re: Q: What is default architecture for code produced by native compiler?
Date: Thu, 26 Aug 2021 09:57:38 +0300

> From: Arthur Miller <arthur.miller@live.com>
> Cc: akrl@sdf.org,  emacs-devel@gnu.org
> Date: Thu, 26 Aug 2021 01:26:30 +0200
> 
> > 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.

Well, I suggest that you do look into the differences between the
produced code, and try to measure the effect on the speed of Emacs.

Btw, -O3 is not recommended, as it frequently produces a slower Emacs.



reply via email to

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