User Tools

Site Tools


tutorials:c-tips

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tutorials:c-tips [2014/04/04 19:02]
razvan created
tutorials:c-tips [2020/07/20 09:16]
Line 1: Line 1:
-===== C Tips ===== 
  
-Read the [[http://ocw.cs.pub.ro/courses/so/teme/general|OS class assignment recommendations]]. 
- 
-Run your code through a static/dynamic checker (as also stated in the link above). [[http://cppcheck.sourceforge.net/ | cppcheck]] and [[http://valgrind.org/ | valgrind]] come into mind. 
- 
-You may also run your code through the Linux kernel's ''checkpatch.pl'': http://wintergreenworks.wordpress.com/2012/05/30/checkpatch-linux-coding-style-check/ 
- 
-Use a header with logging macros. Nice links: 
-  * http://elf.cs.pub.ro/so/res/teme/tema5-util/debug.h 
-  * http://c.learncodethehardway.org/book/ex20.html 
-  * http://stackoverflow.com/questions/1644868/c-define-macro-for-debug-printing/1644898#1644898 
tutorials/c-tips.txt · Last modified: 2020/07/20 09:16 (external edit)