Thursday, 11 October 2007 17:48
Linux Make Tutorial Part 3
The `make' utility automatically determines which pieces of a
large program need to be recompiled, and issues commands to
recompile them. This manual describes GNU `make', which was
implemented by Richard
Stallman and Roland
McGrath. Development since Version 3.76 has been handled by Paul D.
Smith.
Read more...
Thursday, 11 October 2007 17:31
Using Valgrind to Find Memory Leaks and Invalid Memory Use
Valgrind is a multipurpose code profiling and memory debugging
tool for Linux when on the x86 and, as of version 3, AMD64,
architectures. It allows you to run your program in Valgrind's own
environment that monitors memory usage such as calls to malloc and
free (or new and delete in C++). If you use uninitialized memory,
write off the end of an array, or forget to free a pointer,
Valgrind can detect it. Since these are particularly common
problems, this tutorial will focus mainly on using Valgrind to find
these types of simple memory problems, though Valgrind is a tool
that can do a lot more.
Read more...
Thursday, 11 October 2007 12:29
vim Editor Tutorial
Emacs may show its age, but
before there was an emacs, vi was the best thing around. The fact
that vi is still here, and still being used, shows that it, like
shells and shell scripts, still serves a purpose for many users.
Vi, short for visual editor, is a modal editor. In vi, there are
two modes: insert and command. In insert mode, the text you type
gets entered into the file you are editing. In command mode, the
keys you type are interpreted as vi commands, short cryptic
commands that can have a major effect on your
Read more...