Cross Reference: time
xref: /src/sys/external/bsd/compiler_rt/dist/test/timing/time
  • Home
  • History
  • AnnotateAnnotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /src/sys/external/bsd/compiler_rt/dist/test/timing/
11.1Sjoerg#!/bin/sh
21.1Sjoerg
31.1Sjoergfunction test () {
41.1Sjoerg    arch=$1
51.1Sjoerg    file=$2
61.1Sjoerg    name=$3
71.1Sjoerg    ldflags=$4
81.1Sjoerg
91.1Sjoerg    if gcc -arch $arch -Os $file $ldflags -DLIBNAME=$name
101.1Sjoerg    then
111.1Sjoerg	if ./a.out
121.1Sjoerg	then
131.1Sjoerg	    rm ./a.out
141.1Sjoerg	else
151.1Sjoerg	    echo "fail"
161.1Sjoerg	fi
171.1Sjoerg    else
181.1Sjoerg	echo "$FILE failed to compile"
191.1Sjoerg    fi
201.1Sjoerg}
211.1Sjoerg
221.1SjoergINSTALLED=/usr/local/lib/system/libcompiler_rt.a
231.1Sjoerg
241.1Sjoergfor ARCH in i386 x86_64; do
251.1Sjoerg	for FILE in $(ls *.c); do
261.1Sjoerg		
271.1Sjoerg		echo "Timing $FILE for $ARCH"
281.1Sjoerg
291.1Sjoerg		test $ARCH $FILE libgcc ""
301.1Sjoerg                test $ARCH $FILE tuned ../../darwin_fat/Release/libcompiler_rt.a
311.1Sjoerg                if [ -f "$INSTALLED" ]; then
321.1Sjoerg                    test $ARCH $FILE installed $INSTALLED
331.1Sjoerg		fi
341.1Sjoerg
351.1Sjoerg		echo " "
361.1Sjoerg		
371.1Sjoerg	done
381.1Sjoergdone
391.1Sjoergexit
40

Indexes created Mon Nov 10 17:20:41 GMT 2025