annotate examples/qemu_a9_hello/hello.c3 @ 355:c2ddc8a36f5e

Enabled optimization
author Windel Bouwman
date Fri, 14 Mar 2014 10:30:13 +0100
parents 3bb7dcfe5529
children
rev   line source
346
3bb7dcfe5529 expanded arm target
Windel Bouwman
parents:
diff changeset
1 module hello;
3bb7dcfe5529 expanded arm target
Windel Bouwman
parents:
diff changeset
2
3bb7dcfe5529 expanded arm target
Windel Bouwman
parents:
diff changeset
3 function void main()
3bb7dcfe5529 expanded arm target
Windel Bouwman
parents:
diff changeset
4 {
3bb7dcfe5529 expanded arm target
Windel Bouwman
parents:
diff changeset
5 var int* UART0DR;
3bb7dcfe5529 expanded arm target
Windel Bouwman
parents:
diff changeset
6 UART0DR = cast<int*>(0x10009000); // UART0 Data register
3bb7dcfe5529 expanded arm target
Windel Bouwman
parents:
diff changeset
7 *UART0DR = 72;
3bb7dcfe5529 expanded arm target
Windel Bouwman
parents:
diff changeset
8 *UART0DR = 101;
3bb7dcfe5529 expanded arm target
Windel Bouwman
parents:
diff changeset
9 *UART0DR = 108;
3bb7dcfe5529 expanded arm target
Windel Bouwman
parents:
diff changeset
10 *UART0DR = 108;
3bb7dcfe5529 expanded arm target
Windel Bouwman
parents:
diff changeset
11 *UART0DR = 111;
3bb7dcfe5529 expanded arm target
Windel Bouwman
parents:
diff changeset
12 *UART0DR = 32;
3bb7dcfe5529 expanded arm target
Windel Bouwman
parents:
diff changeset
13 *UART0DR = 119;
3bb7dcfe5529 expanded arm target
Windel Bouwman
parents:
diff changeset
14 *UART0DR = 111;
3bb7dcfe5529 expanded arm target
Windel Bouwman
parents:
diff changeset
15 *UART0DR = 114;
3bb7dcfe5529 expanded arm target
Windel Bouwman
parents:
diff changeset
16 *UART0DR = 108;
3bb7dcfe5529 expanded arm target
Windel Bouwman
parents:
diff changeset
17 *UART0DR = 101;
3bb7dcfe5529 expanded arm target
Windel Bouwman
parents:
diff changeset
18
3bb7dcfe5529 expanded arm target
Windel Bouwman
parents:
diff changeset
19 while(true) {}
3bb7dcfe5529 expanded arm target
Windel Bouwman
parents:
diff changeset
20 }
3bb7dcfe5529 expanded arm target
Windel Bouwman
parents:
diff changeset
21