blob: 4798e828866e56f669ae6bc13b6d774e202e0389 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
GXX := g++
CLANGXX := clang++
all: one
test.cc: gen.cc
g++ gen.cc -o gen
gen >test.cc
test-gcc.sum: test.cc
time $(GXX) test.cc -o test-gcc.s -S
$(GXX) test-gcc.s -o test-gcc
test-gcc >test-gcc.sum
test-clang.sum: test.cc
time $(CLANGXX) test.cc -o test-clang.s -S
$(CLANGXX) test-clang.s -o test-clang
test-clang >test-clang.sum
one: test-gcc.sum test-clang.sum
cmp test-gcc.sum test-clang.sum
|