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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.3/] [utils/] [spu/] [README] - Diff between revs 1181 and 1765

Only display areas with differences | Details | Blame | View Log

Rev 1181 Rev 1765
This directory contains version 0.5 of the Software Productivity Unit
This directory contains version 0.5 of the Software Productivity Unit
(SPU, pronounced ``spew''), which is a random program generator for C
(SPU, pronounced ``spew''), which is a random program generator for C
and C++.
and C++.
To configure, say `./configure'.
To configure, say `./configure'.
To build, say `make'.
To build, say `make'.
To run, say `spu'.  This will produce a set of .h and .c files, plus a
To run, say `spu'.  This will produce a set of .h and .c files, plus a
.mk file which is a Makefile.  All the generated files share a base
.mk file which is a Makefile.  All the generated files share a base
name, which defaults to "file", and can be set with the `--basename'
name, which defaults to "file", and can be set with the `--basename'
option.
option.
To compile the generated program, you can say either
To compile the generated program, you can say either
        make -f file.mk
        make -f file.mk
or
or
        gcc file*.c
        gcc file*.c
By default, SPU does not generate a large program.  To generate larger
By default, SPU does not generate a large program.  To generate larger
programs, you can use the `--functions' option to set the number of
programs, you can use the `--functions' option to set the number of
functions that will be generated.  For instance, `--functions 10000'
functions that will be generated.  For instance, `--functions 10000'
together with default values for the other options, will generate 600,000
together with default values for the other options, will generate 600,000
lines or about 10MB of source code.
lines or about 10MB of source code.
To find out about the other available options, use the `--help' option.
To find out about the other available options, use the `--help' option.
TO DO
TO DO
Finish describing the command options.
Finish describing the command options.
Generate more kinds of program constructs.
Generate more kinds of program constructs.
Add more kinds of macro generation.
Add more kinds of macro generation.
Make the output code look more normal.
Make the output code look more normal.
Generate runnable programs.
Generate runnable programs.
 
 

powered by: WebSVN 2.1.0

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