mirror of
https://github.com/ioacademy-jikim/debugging
synced 2025-06-08 08:26:14 +00:00
24 lines
289 B
C
24 lines
289 B
C
#include <stdio.h>
|
|
#include <string.h>
|
|
|
|
#define DEPTH (4*1024)
|
|
#define FRAME (1024)
|
|
|
|
static void test(int depth)
|
|
{
|
|
volatile char frame[FRAME];
|
|
|
|
memset((char *)frame, 0xff, sizeof(frame));
|
|
|
|
if (depth > 1)
|
|
test(depth-1);
|
|
}
|
|
|
|
int main()
|
|
{
|
|
test(DEPTH);
|
|
|
|
printf("PASSED\n");
|
|
return 0;
|
|
}
|