Monday, November 17, 2014

Linux/Unix Resources


Books

Programming Interface:

Kernel:

Links

Colors:

[Done Reading] [Progressing] [Action needed]

Digest

The Linux Programming Interface: A Linux and Unix System Programming Handbook

Sample Code:
  • How to learn:
    • Useful: reading and experiment with the example program
    • Most effective way is to write code, 1) modifying the example to try out my own ideas 2) writing new programs
    • Take the time to read the documentation(if it exists) and write small (but increasingly large) test programs until you become confident of your understanding of the software. I have found that, in the long run, this kind of self-training more than pays for itself in terms of saved time. 

Linux / Unix System Developer Required Knowledge

Core Knowledge

  • Hardware / Assembly Language
  • Operating System

Languages

  • C / C++ / Java
  • Perl / Python
  • Lisp: Common Lisp / Emacs Lisp
  • Command Line: Bash Scripting

Tool Chain:


    -----C++-----

    find the include path: gcc -xc++ -E -v -

    -----GDB-----

    GDB Documentation
    Commands of GUD/GDB
    • @ = C-x C-a / C-c
    • @C-b: (gud-break)
    • @C-d: (gud-remove)
    • @C-t: (gud-tbreak)
    • .
    • @C-l: (gud-refresh) last line
    • .
    • @C-s: (gud-step)
    • @C-n: (gud-next)
    • @C-i: (gud-stepi)
    • @C-p: (gud-print)
    • @C-r: (gud-cont)
    • @   <: frame (gud-down)
    • @   >: frame (gud-down)
    • @C-u: Continue execution to the current line (gud-until)
    • @C-t: Run the program until the selected stack frame returns or stops for some other reason (gud-finish)
    • @C-j: (gud-jump)
    • C-c C-c: send SIGINT to gdb 
    Jump in C:

    • C-c , j: goto variable
    • C-u, C-Space: Goback
    • C-c, g: display reference

    GDB User Interface:

    • gdb-many-windows
    • gdb-restore-windows

    Links


    Labels: ,

    0 Comments:

    Post a Comment

    Subscribe to Post Comments [Atom]

    << Home