darling-gdb/gprof/make_hp_order_obj
1996-01-17 21:16:59 +00:00

12 lines
264 B
Tcsh
Executable File

#!/bin/csh -f
# $1 is the file containing the function ordering
# $2 is the output file
echo ' .SPACE $TEXT$' > /tmp/$$.s
foreach func (`cat $1`)
echo " .NSUBSPA $func,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY" >> /tmp/$$.s
end
gcc -c /tmp/$$.s -o $2
rm -f /tmp/$$.s