OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 # Copyright (c) 2016, the Dartino project authors. Please see the AUTHORS file | 2 # Copyright (c) 2016, the Dartino project authors. Please see the AUTHORS file |
3 # for details. All rights reserved. Use of this source code is governed by a | 3 # for details. All rights reserved. Use of this source code is governed by a |
4 # BSD-style license that can be found in the LICENSE.md file. | 4 # BSD-style license that can be found in the LICENSE.md file. |
5 | 5 |
6 # Temporary script for testing the compact malloc. | 6 # Temporary script for testing the compact malloc. |
7 rm a.out | 7 rm a.out |
8 | 8 |
9 set -e | 9 set -e |
10 | 10 |
11 gcc \ | 11 gcc \ |
12 -g \ | 12 -g \ |
13 -Og \ | 13 -Og \ |
14 -I. \ | 14 -I. \ |
15 -DFLETCH_TARGET_OS_POSIX \ | 15 -DDARTINO_TARGET_OS_POSIX \ |
16 -DNO_NEWLIB_REENT \ | 16 -DNO_NEWLIB_REENT \ |
17 -std=gnu99 \ | 17 -std=gnu99 \ |
18 platforms/stm/disco_fletch/src/cmpctmalloc.c \ | 18 platforms/stm/disco_dartino/src/cmpctmalloc.c \ |
19 -c \ | 19 -c \ |
20 -o cmpctmalloc.o | 20 -o cmpctmalloc.o |
21 | 21 |
22 g++ \ | 22 g++ \ |
23 -g \ | 23 -g \ |
24 -Og \ | 24 -Og \ |
25 -I. \ | 25 -I. \ |
26 -DFLETCH_TARGET_OS_POSIX \ | 26 -DDARTINO_TARGET_OS_POSIX \ |
27 -DNO_NEWLIB_REENT \ | 27 -DNO_NEWLIB_REENT \ |
28 --std=gnu++11 \ | 28 --std=gnu++11 \ |
29 platforms/stm/disco_fletch/src/page_allocator.cc \ | 29 platforms/stm/disco_dartino/src/page_allocator.cc \ |
30 platforms/stm/disco_fletch/src/cmpctmalloc_test.cc \ | 30 platforms/stm/disco_dartino/src/cmpctmalloc_test.cc \ |
31 src/shared/assert.cc \ | 31 src/shared/assert.cc \ |
32 src/shared/platform_posix.cc src/shared/platform_linux.cc \ | 32 src/shared/platform_posix.cc src/shared/platform_linux.cc \ |
33 src/shared/utils.cc \ | 33 src/shared/utils.cc \ |
34 cmpctmalloc.o | 34 cmpctmalloc.o |
35 | 35 |
36 ./a.out | 36 ./a.out |
OLD | NEW |