From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <443A6716.5020801@lanl.gov> Date: Mon, 10 Apr 2006 08:09:26 -0600 From: Ronald G Minnich User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) MIME-Version: 1.0 To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] Good enough approximation for ape/pcc References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 341f04ec-ead1-11e9-9d60-3106f5b1d025 Brantley Coile wrote: > Or they might just like writing stuff for the compiler, personal > entertainment. bingo. I know one or two of the guys, or used to. It was all about optimize, measure, optimize some more. The big picture got lost. It's humorous to see the inline madness, on machines with 512KB caches yet: [rminnich@q linux-2.6.16]$ grep -r -i 'static inline' . |wc 21262 142677 1810997 yep, 21262 instances of 'static inline'. Even better: [rminnich@q linux-2.6.16]$ grep -r -i 'static inline' include/ | wc 8249 54789 689506 so, like, 13K of them are NOT in .h. Which is worse, the fact that the code is replicated all over the place, via .h, or there are .c files with static inline in them? yikes. I was talking to the afterburner guys some months ago. them. "How many inb are there in Plan 9?" me. "Oh, one, maybe two" them. "What about the inline and asm stuff?" me. "The, uh, what? Oh yeah, people used to do that stuff in the 70s and ... oh .. the 21st century too ... hmmm ... they like to bang their head between two blocks I guess." There's lots of other bad stuff that happened too. Linker-sets, for example. Or, oh, the stuff like: if (likely(a != b)) {eatme();} The world went mad. ron