source: benchmark/size/size.cfa @ e15683e

arm-ehjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-expr
Last change on this file since e15683e was e15683e, checked in by Thierry Delisle <tdelisle@…>, 22 months ago

Added benchmark for data sizes

  • Property mode set to 100644
File size: 396 bytes
Line 
1#include <coroutine.hfa>
2#include <kernel.hfa>
3#include <monitor.hfa>
4#include <thread.hfa>
5
6int main(){
7        printf("Coroutine : %ud bytes\n", sizeof( $coroutine ));
8        printf("Monitor   : %ud bytes\n", sizeof( $monitor   ));
9        printf("Thread    : %ud bytes\n", sizeof( $thread    ));
10        printf("Processor : %ud bytes\n", sizeof( processor  ));
11        printf("Cluster   : %ud bytes\n", sizeof( cluster    ));
12}
Note: See TracBrowser for help on using the repository browser.