ln -s /usr/local/sim/isis-ss/include/isis/address.h address.h |
unsigned int puid = get_puid(); if ( puid == 0 ) { 処理A; } |
unsigned int punum = get_punum(); |
barrier(); |
処理A; barrier(); 処理B; |
unsigned int *mem; mem = (unsigned int *)shared_addr_allocate(sizeof(unsigned int)); |
unsigned int *mem; mem = (unsigned int *)shared_addr_for_sync_allocate(sizeof(unsigned int)); |
unsigned *mem; mem = (unsigned int*)fad_addr_allocate(sizeof(unsigned int)); |
if ( get_puid() == 0 ) *mem = get_punum(); barrier(); unsigned int *a; a = (unsigned int *)shared_addr_allocate(sizeof(unsigned int)); *a = 0; if ( *mem > 1 ) while(!(*a)) {} else *a = 1; |
unsigned *idlock; idlock = (unsigned*)tas_addr_allocate(sizeof(unsigned)); |
unsigned int *id; id = (unsigned*)shared_addr_allocate(sizeof(unsigned)); *id = 0; unsigned int Mynum; *idlock = 1; barrier(); while (*idlock) {} Mynum = id; id++; *(Global->idlock) = 1; |
unsigned int start = calc_start(); |
unsigned int end = calc_end(); |
CC = /usr/local/sim/simplescalar-inst/bin/sslittle-na-sstrix-gcc |
PROGRAM = main.c \ get_puid.c \ get_punum.c \ barrier.c \ shared_addr_allocate.c \ shared_addr_for_sync_allocate.c \ fad_addr_allocate.c \ tas_addr_allocate.c \ system_clock.c |