02.05.2013 Views

Basics of the MKS Toolkit - Mks.com

Basics of the MKS Toolkit - Mks.com

Basics of the MKS Toolkit - Mks.com

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Programming<br />

Editing and Record Keeping<br />

5<br />

The <strong>Toolkit</strong> was inspired by UNIX, and UNIX is above all a<br />

programmer's system. The <strong>com</strong>mands <strong>of</strong> UNIX are almost all aimed<br />

at simplifying various aspects <strong>of</strong> programming. As a result, <strong>MKS</strong><br />

<strong>Toolkit</strong> <strong>com</strong>mands are also strongly slanted towards <strong>the</strong> needs <strong>of</strong> a<br />

programmer.<br />

UNIX is particularly geared towards <strong>the</strong> C programming language,<br />

and <strong>the</strong>refore <strong>the</strong> <strong>MKS</strong> <strong>Toolkit</strong> also has strong C programming<br />

capabilities. This doesn't mean that people programming in Java,<br />

Fortran, Pascal, etc. are out <strong>of</strong> luck—<strong>the</strong> <strong>MKS</strong> <strong>Toolkit</strong> has many<br />

general tools that can help any programmer. However, <strong>the</strong>re are also<br />

a number <strong>of</strong> <strong>com</strong>mands that are designed especially for <strong>the</strong> C<br />

programmer. In this section, we begin by looking at <strong>the</strong> general<br />

<strong>com</strong>mands, <strong>the</strong>n go on to <strong>the</strong> C related ones.<br />

In <strong>the</strong> chapters on text processing and record-keeping we discussed a<br />

number <strong>of</strong> <strong>com</strong>mands that have programming applications. More<br />

detailed descriptions <strong>of</strong> <strong>the</strong>se <strong>com</strong>mands are found in those earlier<br />

sections; we will just cover highlights here.<br />

Before a programmer can run a program, <strong>the</strong> source code for <strong>the</strong><br />

program must be entered. Naturally, this means using a text editor.<br />

You will find that <strong>the</strong> vi text editor is well-suited to <strong>the</strong> task <strong>of</strong> typing<br />

in code. The online vi tutorial discussed in <strong>the</strong> “Text Processing”<br />

chapter describes additional features <strong>of</strong> vi that are explicitly aimed at<br />

programmers (for example, facilities for invoking a <strong>com</strong>piler directly<br />

from vi).<br />

<strong>Basics</strong> <strong>of</strong> <strong>the</strong> <strong>MKS</strong> <strong>Toolkit</strong> 27

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!