Changeset ce9338c for benchmark/size


Ignore:
Timestamp:
Feb 24, 2020, 2:37:26 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
dd9e1ca
Parents:
e15683e
Message:

Fixed warnings in benchmarks and removed unnecessary includes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/size/size.cfa

    re15683e rce9338c  
    1 #include <coroutine.hfa>
    21#include <kernel.hfa>
    3 #include <monitor.hfa>
    4 #include <thread.hfa>
    52
    63int 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    ));
     4        printf("Coroutine : %zu bytes\n", sizeof( $coroutine ));
     5        printf("Monitor   : %zu bytes\n", sizeof( $monitor   ));
     6        printf("Thread    : %zu bytes\n", sizeof( $thread    ));
     7        printf("Processor : %zu bytes\n", sizeof( processor  ));
     8        printf("Cluster   : %zu bytes\n", sizeof( cluster    ));
    129}
Note: See TracChangeset for help on using the changeset viewer.