source: trunk/lib_ir/AgnerTestP/PMCTest/a32.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: 450 bytes
Line 
1#!/bin/bash
2# Compile and run PMCTest in 32 bit mode using yasm assembler syntax
3# In 32-bit Linux: Remove -m32 flag on g++ commands
4# In 64-bit Linux: Must install g++-multilib first
5
6# Compile A file if modified
7if [ PMCTestA.cpp -nt a32.o ] ; then
8g++ -O2 -c -m32 -oa32.o PMCTestA.cpp
9fi
10
11nasm -f elf32 -l b32.lst -o b32.o PMCTestB32.nasm
12if [ $? -ne 0 ] ; then exit ; fi
13
14g++  -m32 a32.o b32.o  -lpthread
15if [ $? -ne 0 ] ; then exit ; fi
16
17./a.out
Note: See TracBrowser for help on using the repository browser.