Mercurial > hg > CbC > CbC_gcc
annotate CbC-examples/quicksort/Makefile @ 49:2e19f845ea37
modify
author | kent <kent@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 07 Feb 2010 17:56:25 +0900 |
parents | 9e4f9e20b8f1 |
children |
rev | line source |
---|---|
25
2476ed92181e
modified machine description of i386 for support indirect sibcall attributed fastcall.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
23
diff
changeset
|
1 |
49 | 2 CbCC=../../BUILD/INSTALL_DIR/bin/gcc |
25
2476ed92181e
modified machine description of i386 for support indirect sibcall attributed fastcall.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
23
diff
changeset
|
3 |
2476ed92181e
modified machine description of i386 for support indirect sibcall attributed fastcall.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
23
diff
changeset
|
4 #CC=gcc |
49 | 5 #CC=../../../build_gcc/INSTALL_DIR/bin/gcc |
6 CC=../../BUILD/INSTALL_DIR/bin/gcc | |
25
2476ed92181e
modified machine description of i386 for support indirect sibcall attributed fastcall.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
23
diff
changeset
|
7 |
27
f9b1a53df341
implemented indirect sibcall for ppc.
kent@teto.cr.ie.u-ryukyu.ac.jp
parents:
25
diff
changeset
|
8 HEADERMAKER=../../CbC-scripts/make_headers.py2 |
23 | 9 |
25
2476ed92181e
modified machine description of i386 for support indirect sibcall attributed fastcall.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
23
diff
changeset
|
10 # fastcall版では-O0,-O2は動作確認、-O3以上はだめ |
40
3367c5a7ec79
modify quicksort for benchmark.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
39
diff
changeset
|
11 #CFLAGS=-g -O2 -fomit-frame-pointer |
39 | 12 #CFLAGS=-g -O2 |
40
3367c5a7ec79
modify quicksort for benchmark.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
39
diff
changeset
|
13 CFLAGS=-g -O0 |
39 | 14 #CFLAGS=-g -Os # an error occurred. |
23 | 15 |
16 .SUFFIXES: .cbc .o | |
17 | |
18 all: quicksort_cbc quicksort_c quicksort_cbc2 | |
19 | |
20 .cbc.o: | |
21 $(CbCC) $(CFLAGS) -c -o $@ $< | |
22 .cbc.h: | |
23 $(HEADERMAKER) $^ > $@ | |
24 | |
25 quicksort_cbc.o: quicksort_cbc.h | |
26 quicksort_cbc2.o: quicksort_cbc2.h | |
27 quicksort_test.o: quicksort_test.h | |
28 | |
29 quicksort_cbc: quicksort_cbc.o quicksort_test.o | |
25
2476ed92181e
modified machine description of i386 for support indirect sibcall attributed fastcall.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
23
diff
changeset
|
30 $(CC) $(CFLAGS) -o $@ $^ |
23 | 31 quicksort_cbc2: quicksort_cbc2.o quicksort_test.o |
25
2476ed92181e
modified machine description of i386 for support indirect sibcall attributed fastcall.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
23
diff
changeset
|
32 $(CC) $(CFLAGS) -o $@ $^ |
23 | 33 |
34 quicksort_c: quicksort_c.o | |
25
2476ed92181e
modified machine description of i386 for support indirect sibcall attributed fastcall.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
23
diff
changeset
|
35 $(CC) $(CFLAGS) -o $@ $^ |
23 | 36 |
37 | |
38 clean: | |
25
2476ed92181e
modified machine description of i386 for support indirect sibcall attributed fastcall.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
23
diff
changeset
|
39 rm -rf *.o *.s quicksort_c quicksort_cbc quicksort_cbc2 |