Showing posts with label c. Show all posts
Showing posts with label c. Show all posts

Sunday, January 13, 2008

High resolution ("real-time") timers

To compile: gcc -lrt time.c
More info: link

Wednesday, October 31, 2007

C/C++ Show macros

In gcc or g++, to show all of the macros that are defined for a given platform:
gcc -dM -E test.c
or
g++ -dM -E test.cpp

Wednesday, May 9, 2007

C - Static Keyword

UsageEffect
inside a functionremains even after the function call is long gone
modify a global variableprivate to a certain file
modify a functionmaking those functions visible only to the file itself