Goals
Learn the basics of the command line, refresh C++, command line compilation, and basic gdb (lldb) commands
Concepts
Basic command line literacy: navigation, process management, piping, etc.
Refresh C++ literacy: memory management, references, and const
Command line compilation
Debugging with LLDB or GDB
Problems
(
3 points) Complete the
command line tutorial (only the first page is required; the remainder is useful but not part of the assignment) and report your experience in one paragraph: what was new, what was review, and what was a waste.
(
3 points) Complete the
dynamic memory tutorial and report your experience in one paragraph: what was new, what was review, and what was a waste.
(
3 points) Complete the
references tutorial and report your experience in one paragraph: what was new, what was review, and what was a waste.
(
3 points) Complete the
const tutorial and report your experience in one paragraph: what was new, what was review, and what was a waste.
-
-
(
3 points) Complete either the
LLDB tutorial or the
GDB tutorial depending on if you are using the
clang++ (
OS X) or
g++ (
OS X and Linux) compiler. Report your experience in one paragraph: what was new, what was review, and what was a waste. Typically, the two compilers behave the same, and if it works in
clang++, then it is going to be fine in
g++ on pass-off. Although
OS X has both compilers installed, it only has LLDB available for debugging (or Xcode that wraps LLDB into a nice user interface).
Back to top