summaryrefslogtreecommitdiffstats
path: root/zpu/roadshow/roadshow/codesize/smallstd.c
diff options
context:
space:
mode:
Diffstat (limited to 'zpu/roadshow/roadshow/codesize/smallstd.c')
-rw-r--r--zpu/roadshow/roadshow/codesize/smallstd.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/zpu/roadshow/roadshow/codesize/smallstd.c b/zpu/roadshow/roadshow/codesize/smallstd.c
new file mode 100644
index 0000000..5d4b87a
--- /dev/null
+++ b/zpu/roadshow/roadshow/codesize/smallstd.c
@@ -0,0 +1,9 @@
+int main(int argc, char **argv)
+{
+ volatile int *someRegister=(volatile int *)0;
+ volatile int *otherRegister=(volatile int *)4;
+ while (*someRegister!=0)
+ {
+ *otherRegister++;
+ }
+}
OpenPOWER on IntegriCloud