8

Could users please help me with books that are good for writing C/C++ code on the Unix platform?

My emphasis is on writing low latency code, for use in electronic trading platforms.

(I realise there are a few threads on StackOverflow asking about books for languages generally, but my Q is specifically towards coding on the Unix OS)

user997112
  • 29,025
  • 43
  • 182
  • 361
  • Look at [this question](http://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list) or [this one](http://stackoverflow.com/questions/194812/list-of-freely-available-programming-books) – default Feb 18 '12 at 15:27
  • Already covered in the C++ tag wiki. http://stackoverflow.com/tags/c%2b%2b/info – Martin York Feb 18 '12 at 15:33

3 Answers3

4

For low latency you really have to dig into some blogs and the source of some cool open-source projects, AFAIK there aren't any books available..

Karoly Horvath
  • 94,607
  • 11
  • 117
  • 176
3

Advanced Programming in the UNIX Environment (2nd edition) by W.Richard Stevens and Stephen A.Rago, Addison-Wesley.

man 3 intro

cdarke
  • 42,728
  • 8
  • 80
  • 84
1

I think probably for low-level c code on unix/linux, the gold-standard might be Steven's "Advanced Programming in the Unix Environment". Low-latency means you want to code down to the metal, so that's about as low-level as you can get.

There is also nothing like Stroustrup's C++ (now in it's 3rd edition) which also emphasizes clean, tight code, but with some of the benefits of C++. But for low-latency work, you'll just use things like const and references and encapsulation, but maybe forgo some of the more high-level features like inheritance or exceptions.

larboyer
  • 119
  • 1
  • 3