5bae29a00c
This needed lots of refactoring to ego --- not all platforms have ego descr files, and ego will just crash if you invoke it without one. I think originally it was never intended that these platforms would be used at -O2 or above. Plats now only specify the ego descr file if they have one.
47 lines
1.1 KiB
C
47 lines
1.1 KiB
C
/* $Id$ */
|
|
/*
|
|
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
|
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
|
*/
|
|
/* F I L E N A M E S */
|
|
|
|
/* The names of the input files of every phase are passed as
|
|
* arguments to the phase. First come the input file names,
|
|
* then the output file names. We use a one-letter convention
|
|
* to denote the type of file:
|
|
* p: procedure table file
|
|
* d: data table file
|
|
* l: EM text file (lines of EM instructions)
|
|
* b: basic block file (Control Flow Graph file)
|
|
*/
|
|
|
|
struct files
|
|
{
|
|
/* Input files */
|
|
|
|
const char* pname_in;
|
|
const char* dname_in;
|
|
const char* lname_in;
|
|
const char* bname_in;
|
|
|
|
/* Output files */
|
|
|
|
const char* pname_out;
|
|
const char* dname_out;
|
|
const char* lname_out;
|
|
const char* bname_out;
|
|
|
|
/* The rest of the arguments. */
|
|
|
|
const char** argv;
|
|
int argc;
|
|
};
|
|
|
|
extern struct files* findfiles(int argc, const char** argv);
|
|
|
|
extern FILE *openfile(); /* (char *name, *mode)
|
|
* Open a file with the given name
|
|
* and mode; aborts if the file
|
|
* cannot be opened.
|
|
*/
|