O'Reilly logo

Expert C Programming: Deep C Secrets by Peter van der Linden

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8. Why Programmers Can’t Tell Halloween from Christmas Day

 

Are you fed up with the slow speed of your workstation? Would you like to run your programs twice as fast?

Here's how to do it in UNIX. Just follow these three easy steps:

  1. Design and code a high-performance UNIX vm kernel. Be careful! Your algorithm needs to run twice as fast as the present one to see the full 100% speed-up.

  2. Put your code in a file called /kernel/unix.c

  3. Issue the command

    cc -O4 -o /kernel/unix /kernel/unix.c

    and reboot your machine.

It's as simple as that. And remember, Beethoven wrote his first symphony in C.

 
 --A.P.L. Byteswap’s Big Book of Tuning Tips and Rugby Songs

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required