OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [utils/] [spu/] [README] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
This directory contains version 0.5 of the Software Productivity Unit
2
(SPU, pronounced ``spew''), which is a random program generator for C
3
and C++.
4
 
5
To configure, say `./configure'.
6
 
7
To build, say `make'.
8
 
9
To run, say `spu'.  This will produce a set of .h and .c files, plus a
10
.mk file which is a Makefile.  All the generated files share a base
11
name, which defaults to "file", and can be set with the `--basename'
12
option.
13
 
14
To compile the generated program, you can say either
15
 
16
        make -f file.mk
17
 
18
or
19
 
20
        gcc file*.c
21
 
22
By default, SPU does not generate a large program.  To generate larger
23
programs, you can use the `--functions' option to set the number of
24
functions that will be generated.  For instance, `--functions 10000'
25
together with default values for the other options, will generate 600,000
26
lines or about 10MB of source code.
27
 
28
To find out about the other available options, use the `--help' option.
29
 
30
TO DO
31
 
32
Finish describing the command options.
33
 
34
Generate more kinds of program constructs.
35
 
36
Add more kinds of macro generation.
37
 
38
Make the output code look more normal.
39
 
40
Generate runnable programs.

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.