FUNC_MKDB(1ICD)

NAME
func_mkdb - function block database creating program

SYNOPSIS
func_mkdb [-kps][-Cc_options] infile

OPTIONS
The following options can be specified:

-k  The '.p' file and the '.c' file that are generated by the program are not removed.

-p  The C pre-processor will not first be run on the input file.

-s  Messages about the actions taken by the program will not be printed.

-C  The characters directly following this option are used as options for the C compiler.

DESCRIPTION
Func_mkdb can be used to place a description of a function block into the database. As a description of a function block is contained by the database, instances of the function block can be included in a network description and an appropriate sls simulator can be generated. The latter is done by running the program sls_exp.

Func_mkdb will generate a '.c' file from the input description and it will use the C compiler to translate this file into an object file that can be linked to sls. When no options are specified, first the C pre-processor will be run on the input file and the intermediate result will be placed in a file with the extension '.p'.

The input file may contain only one description of a function block. In addition, it may contain all other text that is allowed in a C file.

EXAMPLE
$ func_mkdb -Cg ram.fun
cc -E ram.fun > ram.p
Parsing ram.p ; making ram.c
cc -c -g ram.c
mv ram.o circuit/ram/sls.o

AUTHOR
O. Hol

FILES
file.fun	input file
file.p	temporary file
file.c	temporary file
file.o	object file that will be stored in the database

SEE ALSO
O. Hol, "FUNC_MKDB: Function Blocks in SLS: User's Manual", Delft University of Technology.
cc(1), rmdb(1ICD), sls(1ICD), sls_exp(1ICD), sls_mkdb(1ICD)