Mercurial > hg > CbC > CbC_gcc
annotate CbC-examples/quicksort/Makefile @ 42:9e4f9e20b8f1
add some examples.
author | kent@teto.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Mon, 25 Jan 2010 17:13:59 +0900 |
parents | 3367c5a7ec79 |
children | 2e19f845ea37 |
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 |
42 | 2 CbCC=../../../build_gcc/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 |
42 | 5 CC=../../../build_gcc/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
|
6 |
27
f9b1a53df341
implemented indirect sibcall for ppc.
kent@teto.cr.ie.u-ryukyu.ac.jp
parents:
25
diff
changeset
|
7 HEADERMAKER=../../CbC-scripts/make_headers.py2 |
23 | 8 |
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
|
9 # fastcall版では-O0,-O2は動作確認、-O3以上はだめ |
40
3367c5a7ec79
modify quicksort for benchmark.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
39
diff
changeset
|
10 #CFLAGS=-g -O2 -fomit-frame-pointer |
39 | 11 #CFLAGS=-g -O2 |
40
3367c5a7ec79
modify quicksort for benchmark.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
39
diff
changeset
|
12 CFLAGS=-g -O0 |
39 | 13 #CFLAGS=-g -Os # an error occurred. |
23 | 14 |
15 .SUFFIXES: .cbc .o | |
16 | |
17 all: quicksort_cbc quicksort_c quicksort_cbc2 | |
18 | |
19 .cbc.o: | |
20 $(CbCC) $(CFLAGS) -c -o $@ $< | |
21 .cbc.h: | |
22 $(HEADERMAKER) $^ > $@ | |
23 | |
24 quicksort_cbc.o: quicksort_cbc.h | |
25 quicksort_cbc2.o: quicksort_cbc2.h | |
26 quicksort_test.o: quicksort_test.h | |
27 | |
28 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
|
29 $(CC) $(CFLAGS) -o $@ $^ |
23 | 30 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
|
31 $(CC) $(CFLAGS) -o $@ $^ |
23 | 32 |
33 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
|
34 $(CC) $(CFLAGS) -o $@ $^ |
23 | 35 |
36 | |
37 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
|
38 rm -rf *.o *.s quicksort_c quicksort_cbc quicksort_cbc2 |