annotate python/tests/testcode.c @ 136:9af544be5d2a

Added hexfile edit
author Windel Bouwman
date Wed, 23 Jan 2013 21:54:14 +0100
parents f2d980eef509
children
rev   line source
106
f2d980eef509 improved code generation
Windel Bouwman
parents:
diff changeset
1
f2d980eef509 improved code generation
Windel Bouwman
parents:
diff changeset
2 int Calculate(int a, int b, int c)
f2d980eef509 improved code generation
Windel Bouwman
parents:
diff changeset
3 {
f2d980eef509 improved code generation
Windel Bouwman
parents:
diff changeset
4 int d, e;
f2d980eef509 improved code generation
Windel Bouwman
parents:
diff changeset
5 d = a + b;
f2d980eef509 improved code generation
Windel Bouwman
parents:
diff changeset
6 e = d * c - a;
f2d980eef509 improved code generation
Windel Bouwman
parents:
diff changeset
7 return a + b + c + d + e;
f2d980eef509 improved code generation
Windel Bouwman
parents:
diff changeset
8 }
f2d980eef509 improved code generation
Windel Bouwman
parents:
diff changeset
9