1
2
3
4
5
6
7
8
9
10
|
#! /bin/sh
# $Id$
# $Log$
# Revision 1.8 2002/09/16 08:08:01 geraint
# Merged changes from global-optimisation branch.
#
# Revision 1.7.2.1 2002/09/04 10:44:59 geraint
# Added option to specify number of tmp variables declared (-ntmpvar <N>).
#
# Revision 1.7 2002/07/10 11:53:32 geraint
|
>
>
>
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#! /bin/sh
# $Id$
# $Log$
# Revision 1.9 2004/08/29 03:18:11 geraint
# Do not write temporary variables if NUM_OF_TMP_VAR = 0.
#
# Revision 1.8 2002/09/16 08:08:01 geraint
# Merged changes from global-optimisation branch.
#
# Revision 1.7.2.1 2002/09/04 10:44:59 geraint
# Added option to specify number of tmp variables declared (-ntmpvar <N>).
#
# Revision 1.7 2002/07/10 11:53:32 geraint
|
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
declare_temp_vars ()
{
for name in ${TMP_VAR_NAMES}
do
echo ""
cat <<EOF | head -`expr ${NUM_OF_TMP_VAR} + 1`
static double ${name}0 MTT_UNUSED;
static double ${name}1 MTT_UNUSED;
static double ${name}2 MTT_UNUSED;
static double ${name}3 MTT_UNUSED;
static double ${name}4 MTT_UNUSED;
static double ${name}5 MTT_UNUSED;
static double ${name}6 MTT_UNUSED;
|
|
|
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
declare_temp_vars ()
{
for name in ${TMP_VAR_NAMES}
do
echo ""
cat <<EOF | head -$(expr ${NUM_OF_TMP_VAR} + 1)
static double ${name}0 MTT_UNUSED;
static double ${name}1 MTT_UNUSED;
static double ${name}2 MTT_UNUSED;
static double ${name}3 MTT_UNUSED;
static double ${name}4 MTT_UNUSED;
static double ${name}5 MTT_UNUSED;
static double ${name}6 MTT_UNUSED;
|