]>
Commit | Line | Data |
---|---|---|
146e25eb | 1 | Splint - annotation-assisted static program checker |
2 | http://www.splint.org | |
3 | ||
4 | Copyright (C) 1994-2002 | |
5 | University of Virginia, | |
6 | Massachusetts Institute of Technology | |
7 | ||
1b8ae690 | 8 | Version 3.0.1 |
9 | 7 January 2001 | |
885824d3 | 10 | |
146e25eb | 11 | Splint Documentation |
885824d3 | 12 | ==================== |
13 | ||
146e25eb | 14 | For documentation on Splint, please see http://www.splint.org |
885824d3 | 15 | |
15b3d2b2 | 16 | WARNING: this is an Alpha release - new features and changes are not |
11db3170 | 17 | reflected in the documentation. |
15b3d2b2 | 18 | |
885824d3 | 19 | Build Instructions |
20 | ================== | |
21 | ||
11db3170 | 22 | To build Splint you need: |
885824d3 | 23 | |
24 | o a (hopefully ANSI-conforming) C compiler. On most modern Unix systems, | |
25 | cc will work fine. For older or less standard systems, gcc is | |
26 | recommended. | |
27 | o gmake, the GNU make utility. If you don't have gmake installed on your | |
28 | system, download it from prep.ai.mit.edu. | |
29 | o standard Unix tools: gzip, tar | |
30 | ||
68de3f33 | 31 | You should also have: |
885824d3 | 32 | |
68de3f33 | 33 | o flex |
34 | o bison version 1.28 or later - bison 1.27 and 1.25 are believed to | |
11db3170 | 35 | have bugs that cause problems with Splint's parsers. |
68de3f33 | 36 | |
11db3170 | 37 | If these are unavailable, you may be able to build Splint anyway using |
68de3f33 | 38 | the derived grammar files. This is not recommended however. |
885824d3 | 39 | |
11db3170 | 40 | 1. Download the Splint source package (splint-<version>.src.tgz). |
68de3f33 | 41 | |
11db3170 | 42 | Copy this package to the directory where you want to build Splint. When |
43 | the tar file is extracted, it will create an splint-<version> subdirectory. | |
885824d3 | 44 | |
68de3f33 | 45 | 2. Extract files from the tar archive: |
11db3170 | 46 | tar xzf splint-<version>.src.tgz |
885824d3 | 47 | |
68de3f33 | 48 | 3. Run: ./configure |
885824d3 | 49 | |
50 | This will create a Makefile with settings for your system. If you | |
11db3170 | 51 | want to install Splint or associated libraries different |
885824d3 | 52 | directories, edit the Makefile. |
53 | ||
68de3f33 | 54 | 4. Run: gmake |
885824d3 | 55 | |
56 | It is best to do this in an emacs shell or a buffered terminal, | |
57 | so you can scroll through the output. | |
58 | ||
59 | 6. Set environment variables | |
60 | ||
11db3170 | 61 | LARCH_PATH - path to search for splint libraries and |
885824d3 | 62 | initializations files. If you are using the standard directories, this |
1b8ae690 | 63 | should be .:<base-directory>/splint-<version>/lib. |
885824d3 | 64 | |
65 | LCLIMPORTDIR - directory containing lcl imports files. If you are using | |
1b8ae690 | 66 | the standard directories, this is <base-directory>/splint-<version>/imports. |
885824d3 | 67 | |
68 | Put the commands to set these variables (the actual commands will depend | |
69 | on the shell you are using) in one of your initialization dotfiles | |
70 | (usually ~/.environment). | |
71 | ||
72 | Set up your PATH to include the directory containing | |
11db3170 | 73 | splint-<version>/bin/splint, or move the binary to a directory on |
885824d3 | 74 | your command path. |
75 | ||
76 | 7. Run: gmake test | |
77 | ||
78 | Examine the test output. If there are errors, send a bug | |
11db3170 | 79 | report to splint-bug@cs.virginia.edu |
885824d3 | 80 | |
11db3170 | 81 | To subscribe to announcements of new Splint releases, send a message to |
885824d3 | 82 | majordomo@virginia.edu containing the body: |
83 | ||
84 | subscribe lclint-announce | |
85 | ||
11db3170 | 86 | To participate in discussions related to Splint, send a message to |
885824d3 | 87 | majordomo@virginia.edu containing the body: |
88 | ||
89 | subscribe lclint-interest | |
90 | ||
15b3d2b2 | 91 | |
92 | ||
93 | ||
94 | ||
95 | ||
96 | ||
97 | ||
98 |