zpu: managed to compile program that writes constant to global variable
[llvm/zpu.git] / lib / Target / ZPU / notes.txt
blobddce3d57618ea534b674dce8ad3461eab07286de
3 clang -ccc-host-triple arm-none-none test.c -S
6 oyvind@fiend:~/workspace/lbuild$ cat test.c
7 int b;
8 int c;
9 void foo(void)
11   //return c+b;
12   b = 1234;
16 clang   -ccc-host-triple zpu-none-none test.c -S
17 oyvind@fiend:~/workspace/lbuild$ cat test.s
18         .file   "test.c"
19         .text
20         .globl  foo
21         .align  2
22         .type   foo,@function
23         store 1234 b
24 $tmp0:
25         .size   foo, ($tmp0)-foo
27         .type   b,@object
28         .comm   b,4,4
29         .type   c,@object
30         .comm   c,4,4
31 oyvind@fiend:~/workspace/lbuild$