blogs

Loop Unrolling

This is the start of an interesting discussion on loop unrolling as a compiler optimization. I summed up our thinking on it:

Application code usually was very clear and almost always right
in their timing choice of straight line vs loop implementation. Rolling
up straight line code and unrolling loops more often than not
interfered with a conscience choice a developer made.

A volatile topic

Here's an interesting writeup about the C keyword volatile.

CERT C Secure Coding Standard - last call for reviewers

We're reprinting a call for the C community to review the current version of the CERT C Secure Coding Standard. Secure coding is the practice of avoiding security exploits through more rigorous control of the sources, methods, and products of compilation.

CERT's wiki has a lot of well-thought-out information in it.

Subject: CERT C Secure Coding Standard - last call for reviewers
Date: Thu, 20 Mar 2008 10:02:10 -0400
From: Robert Seacord rcs@sei.cmu.edu
Organization: Software Engineering Institute

Fuzz-C

"Linguistic Variables: Clear Thinking with Fuzzy Logic" in Toronto

| | |

Walter Banks will be speaking on Fuzzy Logic in Toronto in May. The seminar will be held by the Signals and Computational Intelligence Joint Chapter of IEEE Toronto.

Wednesday, May 14, 2008, 6:00 p.m. – 9:00 p.m., location to be announced.

More information from IEEE Toronto

Our demos: odd setup issue

Have you tried to install one of our demos only to find a completely different setup program starts to run?

C6808

When is a branch not a branch?

| |

I recently got an interesting code sequence out of the compiler.

Neat XOR trick

This is a neat trick using XOR, the most mysterious of the logical operators. Best of all for embedded, it requires no temporary locations.

//swap two values in place
if(x < y)
{
  x = x ^ y;
  y = y ^ x;
  x = x ^ y;
}

Et voila!

Fuzz-C

Fuzzy Logic zeitgeist, with statistics

|

I decided to sift through the cache of alerts ... to get a better idea of the zeitgeist of fuzzy logic. ...[F]uzzy logic is familiar enough to be used intelligently or casually, and, it turns out, to be chronically misrepresented as well.

Syndicate content