25 #include "pips_config.h"
54 "Processor number: %d\n"
55 "Memory bank number: %d\n"
56 "Bank width (i.e. line size): %d\n\n", pn, bn, ls);
62 i1 = fscanf(fd,
"Target Machine:\n");
63 i2 = fscanf(fd,
"Processor number: %d\n", ppn);
64 i3 = fscanf(fd,
"Memory bank number: %d\n", pbn);
65 i4 = fscanf(fd,
"Bank width (i.e. line size): %d\n\n", pls);
66 if(i1!=0 && i2!=1 && i3!=1 && i4!=1) {
67 user_error(
"model_fscan",
"Bad format for machine model\n");
75 if ((fd = fopen(model_rc,
"r")) == NULL) {
char * get_string_property(const char *)
FILE * fopen_config(const char *canonical_name, const char *cproperty, const char *cenv)
#define user_error(fn,...)
void model_fscan(FILE *fd, int *ppn, int *pbn, int *pls)
void get_model(int *ppn, int *pbn, int *pls)
void model_fprint(FILE *fd, int pn, int bn, int ls)
Code Generation for Distributed Memory Machines.
int fprintf()
test sc_min : ce test s'appelle par : programme fichier1.data fichier2.data ...