Table of Contents

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

  1. (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.
  2. (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. (3 points) Complete the references tutorial and report your experience in one paragraph: what was new, what was review, and what was a waste.
  4. (3 points) Complete the const tutorial and report your experience in one paragraph: what was new, what was review, and what was a waste.
  5. (3 points) Complete the compiling with the command line tutorial and report your experience in one paragraph: what was new, what was review, and what was a waste. (If the link is broken, there is a backup version here.)
  6. (1 point) Review the project standards and report any questions.
  7. (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).
cs-236/homework-0.txt · Last modified: 2018/09/10 16:16 by pdiddy
Back to top
CC Attribution-Share Alike 4.0 International
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0