source: trunk/lib_ir/AgnerTestP/PMCTest/c32.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: 484 bytes
Line 
1#!/bin/bash
2# Compile and run PMCTest in 32 bit mode using C++
3# (c) 2012 by Agner Fog. GNU General Public License www.gnu.org/licenses
4
5# In 32-bit Linux: Remove -m32 flag on g++ commands
6# In 64-bit Linux: Must install g++-multilib first
7
8# Compile A file if modified
9if [ PMCTestA.cpp -nt a32.o ] ; then
10g++ -O2 -c -m32 -oa32.o PMCTestA.cpp
11fi
12
13# Compile B file and link
14g++ -O2 -m32 a32.o PMCTestB.cpp -lpthread
15if [ $? -ne 0 ] ; then exit ; fi
16./a.out
17
18# read -p "Press [Enter]"
Note: See TracBrowser for help on using the repository browser.