From b5f0874cd96ee2a62aabc645b9626c2749cb6a01 Mon Sep 17 00:00:00 2001 From: manuel Date: Mon, 26 Mar 2012 12:54:45 +0200 Subject: initial pintos checkin --- doc/pintos_9.html | 143 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 143 insertions(+) create mode 100644 doc/pintos_9.html (limited to 'doc/pintos_9.html') diff --git a/doc/pintos_9.html b/doc/pintos_9.html new file mode 100644 index 0000000..b63a0ba --- /dev/null +++ b/doc/pintos_9.html @@ -0,0 +1,143 @@ + + + + + +Pintos Projects: Development Tools + + + + + + + + + + + + + + + + + + + +
[ << ][ >> ]           [Top][Contents][Index][ ? ]
+ +
+

E. Development Tools

+ +

+ +Here are some tools that you might find useful while developing code. +

+

+ + +


+ +

E.1 Tags

+ +

+ +Tags are an index to the functions and global variables declared in a +program. Many editors, including Emacs and vi, can use +them. The Makefile in pintos/src produces Emacs-style +tags with the command make TAGS or vi-style tags with +make tags. +

+

+ +In Emacs, use M-. to follow a tag in the current window, +C-x 4 . in a new window, or C-x 5 . in a new frame. If +your cursor is on a symbol name for any of those commands, it becomes +the default target. If a tag name has multiple definitions, M-0 +M-. jumps to the next one. To jump back to where you were before +you followed the last tag, use M-*. +

+

+ + +


+ +

E.2 cscope

+ +

+ +The cscope program also provides an index to functions and +variables declared in a program. It has some features that tag +facilities lack. Most notably, it can find all the points in a +program at which a given function is called. +

+

+ +The Makefile in pintos/src produces cscope +indexes when it is invoked as make cscope. Once the index has +been generated, run cscope from a shell command line; no +command-line arguments are normally necessary. Then use the arrow +keys to choose one of the search criteria listed near the bottom of +the terminal, type in an identifier, and hit Enter. +cscope will then display the matches in the upper part of +the terminal. You may use the arrow keys to choose a particular +match; if you then hit Enter, cscope will invoke the +default system editor(7) and position the +cursor on that match. To start a new search, type Tab. To exit +cscope, type Ctrl-d. +

+

+ +Emacs and some versions of vi have their own interfaces to +cscope. For information on how to use these interface, +visit http://cscope.sourceforge.net, the cscope home +page. +

+

+ + +


+ +

E.3 git

+ +

+ +git is a version-control system. That is, you can use it to keep +track of multiple versions of files. The idea is that you do some +work on your code and test it, then check it into the version-control +system. If you decide that the work you've done since your last +check-in is no good, you can easily revert to the last checked-in +version. Furthermore, you can retrieve any old version of your code +as of some given day and time. The version control logs tell you who +made changes and when. +

+

+ + +


+ + + + + + + +
[ << ][ >> ]           [Top][Contents][Index][ ? ]
+
+ +This document was generated +by on March, 6 2012 +using texi2html + + + + -- cgit v1.2.3