view example/MemList/main.cc @ 366:09f33c51a204

rename include/TaskManager/* and add memory
author aaa
date Mon, 27 Jul 2009 15:51:18 +0900
parents 87462f8d3761
children 126f90e8582c
line wrap: on
line source

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "TaskManager.h"
#include "Func.h"

extern void task_init(void);

static int count = 1;

extern TaskManager *manager;

const char *usr_help_str = "Usage: ./hello [-cpu spe_num] [-count N]\n\
  -cpu    Number of SPE (default 1) \n\
  -count  Number of task is print \"Hello, World!!\"";

// get のテストとか

int
main(int argc, char *argv[])
{
    uint32 size = 128;
    uint32 count = 64;
    
    MemList* active = createMemList(size, 0);
    MemList* freelist = createMemList(size, count);
    
    // 配列!
    for (int i = 0; i < count; i++) {
	MemorySegment* e;
	active->addFirst()
    }		
    
    return 0;
}