Skip to content

raypan7/phonebook-1

 
 

Repository files navigation

Summary

  • Understand the impact of cache miss
  • Get familiar with the performance analysis tool
  • Realize the software optimizations

Indenting Code

You can use AStyle (Artistic Style) source code indenter to help you auto format your source code. It will for sure not correct all your coding styles but for sure will eliminate most of them. You can download AStyle from this location or install via apt-get:

sudo apt-get install astyle

To format your file you can execute below command:

astyle --style=kr --indent=spaces=4 --indent-switches --suffix=none *.[ch]

Install Git pre-commit hook to check C/C++ source file format

ln -sf ../../scripts/pre-commit.hook .git/hooks/pre-commit

Licensing

phonebook is freely redistributable under the two-clause BSD License. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

About

sample phonebook program to illustrate the impact of cache miss

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 77.8%
  • Makefile 9.9%
  • Shell 8.7%
  • Gnuplot 3.6%