April 15, 2012

Properties of the compiler and floating point arithmetic test

While i was reading The C library book, i come across two tests which are mentioned in the float chapter.

Enquire tests the properties of a compiler and the machine which is run on. It creates the file with the outputs.

Enquire test written by Steven Pemberton of CWI
More reading at: Enquire details

Paranoia tests the floating point arithmetic used.
Paranoia W.M. Kahan

April 13, 2012

C language books

I've purchased books quite regular since last year.

I include a list of C language book recommendations, I haven't read them all so far, I intend to. I grabbed C puzzle book last weekend and had fun with some exercises which seem to be easy but tricky sometimes. My all-time favorite is K&R which helped me quite a lot.

C language book recommendation

ARM Information center (bookmark)

Everybody who ever have worked with ARM should be familiar with ARM information center. For those who don't, it is informative reference which might help even if you work with different architecture or in the embedded area.

ARM infocenter

April 6, 2012

DSP Filters for touch sensing (bookmark)

I had to correct one IIR filter in touch sensing software because there was potentially one overflow in computing. This pdf from microchip contains few filters with C codes and figures how they affect the signal.
Various filters for touch sensing signals

Various coding standards (bookmark)

I visit CERT C secure coding standard from time to time to check for some complementary solutions.
C secure coding standard

Left hand comparison was brought up during the discussion, here's adaptation from NetBSD coding style page:
C coding standart [users.ece.cmu.edu/~eno]

Google chromium coding style [dev.chromium.org]
This particular was mainly because I was looking for something regarding C++, like macro DISALLOW_COPY_AND_ASSIGN, very informative webpage for developers !

C language pitfalls (bookmark)

Do you know the answer for a following declaration : (*(void(*)())0)()?

C language quirks, few examples which might catch your attention:
C language quirks
C pitfalls book available online:
C Language Traps

Linker command file (bookmark)

I run into a problem with linker command file where was KEEP_SECTIONS defined. I include some links with this topic to get familiar with linkers.

Linker command file (gnu) [delorie.com/gnu/docs/binutils]

Commands and Operators in Linker files

Linker description and an example - Chapter 7 [csapp.cs.cmu.edu]

Linkers and Loaders book
Linker and Loaders book written by John R. Levine published online.

Beginner's guide to Linkers [www.lurklurk.org]
Beginners guide to Linkers is explanatory article about process of linking. It has introduction to C++ and how linkers are changed because of new features of C++ compare to C language.

Linker Script File [bravegnu.org]
The article explains linker script file and in a next chapter how data are placed in RAM.

Preprocessor C/C++ (bookmark)

Preprocessor can be sometimes useful with directives, constants, and macros.

Difference between preprocessor [c-links.blogspot.com]
Description of preprocessor, assembler, linker

The Preprocessor for GCC [www.cs.utah.edu/dept]
Well written guide with many examples.

C preprocessor Tricks [cprogramming.com/tutorial]
C programming tricks with preprocessor.