GNU PROLOG with UTF8 support
Data Structures | Macros | Enumerations | Functions | Variables
pl_config.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <ctype.h>
#include "gp_config.h"
#include "machine.h"
Include dependency graph for pl_config.c:

Data Structures

struct  UsedMachRegInf
 
struct  RegInf
 
struct  TagInf
 
struct  StackInf
 

Macros

#define STR_LENGTH   512
 
#define FILE_WAM_ARCHI_DEF   "wam_archi.def"
 
#define FILE_WAM_ARCHI_H   "wam_archi.h"
 
#define FILE_WAM_REGS_H   "wam_regs.h"
 
#define FILE_WAM_STACKS_H   "wam_stacks.h"
 
#define FILE_GPROLOG_CST_H   "gprolog_cst.h"
 
#define Mk_Tag_Mask(x)   ((((PlULong) (x) >> tag_size_low) << (value_size + tag_size_low)) | ((x) & ((1 << tag_size_low) - 1)))
 

Enumerations

enum  TypTag { SHORT_UNS, LONG_INT, ADDRESS }
 

Functions

void Generate_Archi (void)
 
void Write_C_Compiler_Info (void)
 
void Write_GProlog_Cst (void)
 
char * Read_Identifier (char *s, int fail_if_error, char **end)
 
char * Read_String (char *s, char **end)
 
int Pl_Read_Integer (char *s, char **end)
 
void Generate_Regs (FILE *f, FILE *g)
 
void Generate_Tags (FILE *f, FILE *g)
 
void Generate_Stacks (FILE *f, FILE *g)
 
void Pl_Fatal_Error (char *format,...)
 
int main (void)
 

Variables

UsedMachRegInf used_mach_reg [256]
 
int nb_of_used_mach_regs
 
char save_str [STR_LENGTH]
 
FILE * fw_r
 
FILE * fw_s
 
FILE * fg_c
 

Macro Definition Documentation

#define FILE_GPROLOG_CST_H   "gprolog_cst.h"
#define FILE_WAM_ARCHI_DEF   "wam_archi.def"
#define FILE_WAM_ARCHI_H   "wam_archi.h"
#define FILE_WAM_REGS_H   "wam_regs.h"
#define FILE_WAM_STACKS_H   "wam_stacks.h"
#define Mk_Tag_Mask (   x)    ((((PlULong) (x) >> tag_size_low) << (value_size + tag_size_low)) | ((x) & ((1 << tag_size_low) - 1)))
#define STR_LENGTH   512

Enumeration Type Documentation

enum TypTag
Enumerator
SHORT_UNS 
LONG_INT 
ADDRESS 

Function Documentation

void Generate_Archi ( void  )

Here is the call graph for this function:

Here is the caller graph for this function:

void Generate_Regs ( FILE *  f,
FILE *  g 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void Generate_Stacks ( FILE *  f,
FILE *  g 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void Generate_Tags ( FILE *  f,
FILE *  g 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int main ( void  )

Here is the call graph for this function:

void Pl_Fatal_Error ( char *  format,
  ... 
)

Here is the caller graph for this function:

int Pl_Read_Integer ( char *  s,
char **  end 
)

Here is the call graph for this function:

Here is the caller graph for this function:

char * Read_Identifier ( char *  s,
int  fail_if_error,
char **  end 
)

Here is the call graph for this function:

Here is the caller graph for this function:

char * Read_String ( char *  s,
char **  end 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void Write_C_Compiler_Info ( void  )

Here is the caller graph for this function:

void Write_GProlog_Cst ( void  )

Here is the caller graph for this function:

Variable Documentation

FILE* fg_c
FILE* fw_r
FILE* fw_s
int nb_of_used_mach_regs
char save_str[STR_LENGTH]
UsedMachRegInf used_mach_reg[256]