[Top][All Lists]

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

Re: stop using P_, __P in header files

From: Dan Nicolaescu
Subject: Re: stop using P_, __P in header files
Date: Mon, 05 Jul 2010 23:23:09 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

>> From: Juanma Barranquero <address@hidden>
>> Date: Mon, 5 Jul 2010 05:38:05 +0200
>> Cc: address@hidden, Ken Raeburn <address@hidden>, address@hidden
>> On Mon, Jul 5, 2010 at 05:05, Eli Zaretskii <address@hidden> wrote:
>> > Emacs is compiled not only by GCC.
>> True, but "register" never was more than a hint to the compiler.
> I'm not an expert, so I don't know.  Maybe someone else could chime
> in.  One issue that I'd be interested in is to know whether GCC uses
> this hint at some low optimization level, because I frequently need to
> use -O1 or -O0 to get a binary I can debug without getting older by
> the hour.
>> Surely most modern compilers do a better work on optimizing code on
>> their own than relying on naive register declarations...
> FWIW, the ones I put in some code I wrote long ago were not naive at
> all.  And I don't think those we have in Emacs are naive, either.  But
> if these hints are not used, it doesn't really matter.

Why don't you try if it makes any difference?
#define register
at the beginning of a C file, after all the #includes and then check if there's 
any code
generation difference.

reply via email to

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