summaryrefslogtreecommitdiffstats
path: root/zpu/roadshow/roadshow/codesize/small.c
diff options
context:
space:
mode:
authoroharboe <oharboe>2008-01-02 21:52:27 +0000
committeroharboe <oharboe>2008-01-02 21:52:27 +0000
commitf2b214b0dff95d6bb79cbb5b6ff5ba9d90f655c9 (patch)
tree2f53ff8c86e2708f838d26e3edede86c111b309e /zpu/roadshow/roadshow/codesize/small.c
downloadzpu-f2b214b0dff95d6bb79cbb5b6ff5ba9d90f655c9.zip
zpu-f2b214b0dff95d6bb79cbb5b6ff5ba9d90f655c9.tar.gz
Initial import from www.ecosforge.net
Diffstat (limited to 'zpu/roadshow/roadshow/codesize/small.c')
-rw-r--r--zpu/roadshow/roadshow/codesize/small.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/zpu/roadshow/roadshow/codesize/small.c b/zpu/roadshow/roadshow/codesize/small.c
new file mode 100644
index 0000000..0317343
--- /dev/null
+++ b/zpu/roadshow/roadshow/codesize/small.c
@@ -0,0 +1,9 @@
+void _premain(void)
+{
+ volatile int *someRegister=(volatile int *)0;
+ volatile int *otherRegister=(volatile int *)4;
+ while (*someRegister!=0)
+ {
+ *otherRegister++;
+ }
+}
OpenPOWER on IntegriCloud