delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2007/02/21/16:01:13

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
Subject: Addition of some GCC headers from Linux?
To: djgpp-workers AT delorie DOT com
X-Mailer: Lotus Notes Release 7.0.2 September 26, 2006
Message-ID: <OFFB4D930C.F86C517F-ON87257289.006F1726-87257289.00736FCB@seagate.com>
From: Gordon DOT Schumacher AT seagate DOT com
Date: Wed, 21 Feb 2007 14:00:52 -0700
X-MIMETrack: Serialize by Router on SV-GW1/Seagate Internet(Release 7.0.1 HF29|March 07, 2006) at
02/21/2007 01:00:58 PM
MIME-Version: 1.0
X-Proofpoint-FWRule: outbound2
X-Proofpoint-Virus-Version: vendor=fsecure engine=4.65.5502:2.3.11,1.2.37,4.0.164 definitions=2007-02-21_06:2007-02-20,2007-02-21,2007-02-21 signatures=0
Reply-To: djgpp-workers AT delorie DOT com

I wanted to propose the addition of a DJGPP version of some headers
that show up on Linux systems.

In the include/linux directory there are a few "compiler-xxx.h"
files which define some handy GCC-specific preprocessor macros
for optimizing code - the likely() and unlikely() macros, for
instance.  They all work out to GCC attribute declarations in
the end.

What I'd like to see is a very trimmed-down subset of those files,
basically removing all of the address-space and "sparse" stuff and
leaving only the genuine GCC attribute macros.  I've gotten some
quite good improvement out of likely()/unlikely(), and I've used
the const and pure atrtributes to good success in the past.  I'd
definitely also like to get the deprecated attribute into use in
my code.

The reason I'm suggesting adding the headers to the distribution
is that I think that there's some opportunity for optimizing the
DJGPP libc itself using some of these macros.

I'm not sure that the files should stay in a "linux" subdirectory
- does anyone have any thoughts as to where they should live?  Any
protests?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019