forked from robertapengelly/as86
-
Notifications
You must be signed in to change notification settings - Fork 0
/
as.h
58 lines (36 loc) · 1.06 KB
/
as.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/******************************************************************************
* @file as.h
*****************************************************************************/
#ifndef _AS_H
#define _AS_H
#include <stddef.h>
#include "vector.h"
struct proc {
char *name;
struct vector regs, args;
};
struct seg {
char *name;
int bits;
};
#include "hashtab.h"
struct as_state {
char **defs, **files, **inc_paths;
unsigned long nb_defs, nb_files, nb_inc_paths;
const char *format, *listing, *outfile;
int nowarn, model, keep_locals;
const char *sym_start, *end_sym;
struct vector procs, segs;
struct hashtab hashtab_externs;
unsigned long text_section_size;
};
extern struct as_state *state;
extern const char *program_name;
struct object_format {
const char *name;
void (*install_pseudo_ops) (void);
void (*adjust_code) (void);
void (*write_object) (void);
};
#define ARRAY_SIZE(arr) (sizeof (arr) / sizeof (arr[0]))
#endif /* _AS_H */