source: trunk/Softwares/Test/Test_067/src/c/main.c @ 113

Last change on this file since 113 was 112, checked in by rosiere, 16 years ago

1) Stat_list : fix retire old and new register bug
2) Stat_list : remove read_counter and valid flag, because validation of destination is in retire step (not in commit step)
3) Model : add class Model (cf Morpheo.sim)
4) Allocation : alloc_interface_begin and alloc_interface_end to delete temporary array.
5) Script : add distexe.sh
6) Add Comparator, Multiplier, Divider. But this component are not implemented
7) Software : add Dhrystone

  • Property svn:keywords set to Id
File size: 488 bytes
Line 
1// $Id: main.c 112 2009-03-18 22:36:26Z rosiere $
2
3//=====[ main ]=================================================================
4/*
5 * All thread execute this routine
6 * Initialize the thread and attribute a Workload at each thread
7 */
8
9#include <stdlib.h>
10#include <stdio.h>
11#include <unistd.h>
12#include <string.h>
13
14int main()
15{
16  FILE * file = fopen("Test_067.txt","w");
17   
18  if (file == NULL)
19    exit (1);
20 
21  fprintf(file,"Hello World !!!\n"); 
22 
23  if (fclose (file) != 0)
24    exit (2);
25 
26  exit (0);
27
28  while (1);
29}
Note: See TracBrowser for help on using the repository browser.