added preload_usb hack
[tridge/junkcode.git] / mem_hog.c
1 #define SIZE (2*1024*1024)
2
3 void main(void)
4 {
5         unsigned *p = (char *)malloc(SIZE);
6         char sum=0;
7         memset(p,42,SIZE);
8
9         while (1) {
10                 int i;
11                 for (i=0;i<SIZE/4;i++) sum += p[i];
12         }
13 }