C code snippet to measure function execution time for both Linux and Mac OS X

In this article we’ll see how to write a simple yet effective code in C language to measure the time required to process a function. This code has been written to be  compiled without changes on both Linux-GCC and Mac OS X GCC compiler.

Continue reading

Advertisements

System Calls (Part I)

Syscalls are the way a Software Application Program can interact with the underlining Operating System, everything from displaying a character on the screen to reading a file from the harddrive will generate syscalls. In this post we’ll analyse syscalls in details with examples on different CPU architectures and Operating Systems.

Continue reading