Code: Select all
//main.c
#include <stdio.h>
int main() {
printf("Hello World");
return 0;
}
xcc -target=XK-EVK-XU316 -report src/hello-world/main.c -o bin/hello-world/hello-world.xe
Constraint check for tile[0]:
Cores available: 8, used: 1 . OKAY
Timers available: 10, used: 1 . OKAY
Chanends available: 32, used: 0 . OKAY
Memory available: 524288, used: 21368 . OKAY
(Stack: 836, Code: 19280, Data: 1252)
Constraints checks PASSED.
Code: Select all
#include <xcore/hwtimer.h>
#include <stdio.h>
int main() {
printf("Hello World");
return 0;
}
xcc -target=XK-EVK-XU316 -report src/hello-world/main.c -o bin/hello-world/hello-world.xe
Constraint check for tile[0]:
Memory available: 524288, used: 21368 . OKAY
(Stack: 836, Code: 19280, Data: 1252)
Constraints checks PASSED.
Can someone shed some light on this behavior? Is this a bug or "feature" of the XCC compiler when using the lib_xcore library? How can I get around this and see a full resource usage report with lib_xcore code in my programs?
Any help or pointers would be greatly appreciated! I'm still trying to wrap my head around XMOS and multicore programming.