source: trunk/lib_ir/AgnerTestP/PMCTest/c64.sh @ 4221

Last change on this file since 4221 was 4221, checked in by linmengl, 5 years ago

initial checkin of Agner Fog's performance script

File size: 380 bytes
RevLine 
[4221]1#!/bin/bash
2# Compile and run PMCTest in 64 bit mode using C++
3# (c) 2012 by Agner Fog. GNU General Public License www.gnu.org/licenses
4
5# Compile A file if modified
6if [ PMCTestA.cpp -nt a64.o ] ; then
7g++ -O2 -c -m64 -oa64.o PMCTestA.cpp
8fi
9
10# Compile B file and link
11g++ -O2 -m64 a64.o PMCTestB.cpp -lpthread
12if [ $? -ne 0 ] ; then exit ; fi
13./a.out
14
15# read -p "Press [Enter]"
Note: See TracBrowser for help on using the repository browser.