Using Pict (CSCI 6962 Spring 2004)

Pict is installed in the directory /projects/dci/pict. If you cannot access it, please send an email to To use Pict, you have to set some variables in your environment. The path of the compiler is /projects/dci/pict/bin. The path of the library is /projects/dci/pict/lib/pict. If you have no idea how to setup the variables in your environment, please follow the steps (assuming your environment is bash):


coffeepot Simple $ export PATH=$PATH:/projects/dci/pict/bin
coffeepot Simple $ export LIB=/projects/dci/pict/lib/pict:$LIB


Now you may want to try compiling some examples. The example  directory is located in /projects/dci/pict/Example. You can copy some of the examples to your home directory. For example:


coffeepot Simple $ cp /projects/dci/pict/Examples/Simple/hello.pi ~
coffeepot Simple $ cd ~
coffeepot wangw5 $ pict hello.pi
Hello world


You can see the standard output shows "Hello world". Besides, the compiler also produces an executable file called a.out. You can try to execute a.out, and you will see the same result. Of course you can specify the output filename with the option -o. For example:


coffeepot wangw5 $ pict hello.pi -o hello
coffeepot wangw5 $ ./hello
Hello world


The tutorial is available in the directory /projects/dci/pict/Doc. Take a look at it.