[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?
Add
#define register
at the beginning of a C file, after all the #includes and then check if there's
any code
generation difference.
- Re: stop using P_, __P in header files, (continued)
- Re: stop using P_, __P in header files, Dan Nicolaescu, 2010/07/05
- Re: stop using P_, __P in header files, Andreas Schwab, 2010/07/05
- Re: stop using P_, __P in header files, Ken Raeburn, 2010/07/04
- Re: stop using P_, __P in header files, Juanma Barranquero, 2010/07/04
- Re: stop using P_, __P in header files, Eli Zaretskii, 2010/07/04
- Re: stop using P_, __P in header files, Juanma Barranquero, 2010/07/04
- Re: stop using P_, __P in header files, Eli Zaretskii, 2010/07/05
- Re: stop using P_, __P in header files, Ken Raeburn, 2010/07/05
- Re: stop using P_, __P in header files, Juanma Barranquero, 2010/07/05
- Re: stop using P_, __P in header files, Eli Zaretskii, 2010/07/05
- Re: stop using P_, __P in header files,
Dan Nicolaescu <=
- Re: stop using P_, __P in header files, Dan Nicolaescu, 2010/07/09
- Re: stop using P_, __P in header files, David Kastrup, 2010/07/10
- Re: stop using P_, __P in header files, Juanma Barranquero, 2010/07/10
- Re: stop using P_, __P in header files, Ken Raeburn, 2010/07/04
- Re: stop using P_, __P in header files, Stephen J. Turnbull, 2010/07/06
- Re: stop using P_, __P in header files, Ken Raeburn, 2010/07/06
- Re: stop using P_, __P in header files, Stephen J. Turnbull, 2010/07/06
- Re: stop using P_, __P in header files, Dan Nicolaescu, 2010/07/05
- Re: stop using P_, __P in header files, Ken Raeburn, 2010/07/05
- Re: stop using P_, __P in header files, Dan Nicolaescu, 2010/07/05