annotate python/tests/testcode.c @ 113:1f40be088ee8

Added first start stlink
author Windel Bouwman
date Sat, 05 Jan 2013 00:06:27 +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