Commit | Line | Data |
---|---|---|
252b5132 RH |
1 | ;; This is the hand hacked output of the TI C compiler for a simple |
2 | ;; test program that contains static, global, and extern data variables. | |
3 | ||
4 | .file "relocs2.s" | |
5 | .global _x_char | |
6 | .global _x_short | |
7 | .global _x_long | |
8 | .global _x_float | |
9 | .global _x_double | |
10 | .global _x_char_p | |
11 | .global _g_char | |
12 | .global _g_short | |
13 | .global _g_int | |
14 | .global _g_long | |
15 | .global _g_float | |
16 | .global _g_double | |
17 | .global _g_char_p | |
18 | .global _main | |
19 | ||
20 | _main: | |
21 | ld.b _s_char+0(r0),r2 | |
22 | st.b _x_char+0(r0),r2 | |
23 | ld.b _x_char+0(r0),r2 | |
24 | st.b _g_char+0(r0),r2 | |
25 | ld.h _s_short+0(r0),r2 | |
26 | st.h _x_short+0(r0),r2 | |
27 | ld.h _x_short+0(r0),r2 | |
28 | st.h _g_short+0(r0),r2 | |
29 | ld _s_int+0(r0),r2 | |
30 | st _x_int+0(r0),r2 | |
31 | ld _x_int+0(r0),r2 | |
32 | st _g_int+0(r0),r2 | |
33 | ld _s_long+0(r0),r2 | |
34 | st _x_long+0(r0),r2 | |
35 | ld _x_long+0(r0),r2 | |
36 | st _g_long+0(r0),r2 | |
37 | ld _s_float+0(r0),r2 | |
38 | st _x_float+0(r0),r2 | |
39 | ld _x_float+0(r0),r2 | |
40 | st _g_float+0(r0),r2 | |
41 | ld.d _s_double+0(r0),r2 | |
42 | st.d _x_double+0(r0),r2 | |
43 | ld.d _x_double+0(r0),r2 | |
44 | st.d _g_double+0(r0),r2 | |
45 | ld _s_char_p+0(r0),r2 | |
46 | st _x_char_p+0(r0),r2 | |
47 | ld _x_char_p+0(r0),r2 | |
48 | st _g_char_p+0(r0),r2 | |
49 | jsr.a r31(r0),r0 | |
50 | ||
51 | .global _g_char_p | |
52 | .bss _g_char_p,4,4 | |
53 | .global _g_long | |
54 | .bss _g_long,4,4 | |
55 | .bss _s_double,8,8 | |
56 | .bss _s_long,4,4 | |
57 | .global _g_char | |
58 | .bss _g_char,1,4 | |
59 | .global _g_int | |
60 | .bss _g_int,4,4 | |
61 | .bss _s_char,1,4 | |
62 | .bss _s_int,4,4 | |
63 | .global _g_double | |
64 | .bss _g_double,8,8 | |
65 | .bss _s_float,4,4 | |
66 | .global _g_short | |
67 | .bss _g_short,2,4 | |
68 | .global _g_float | |
69 | .bss _g_float,4,4 | |
70 | .bss _s_short,2,4 | |
71 | .bss _x_int,4,4 | |
72 | .bss _s_char_p,4,4 |