URL
https://opencores.org/ocsvn/marca/marca/trunk
[/] [marca/] [trunk/] [spar/] [symtab.h] - Blame information for rev 2
Go to most recent revision |
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
2 |
jeunes2 |
/* This file is part of the assembler "spar" for marca.
|
2 |
|
|
Copyright (C) 2007 Wolfgang Puffitsch
|
3 |
|
|
|
4 |
|
|
This program is free software; you can redistribute it and/or modify it
|
5 |
|
|
under the terms of the GNU Library General Public License as published
|
6 |
|
|
by the Free Software Foundation; either version 2, or (at your option)
|
7 |
|
|
any later version.
|
8 |
|
|
|
9 |
|
|
This program is distributed in the hope that it will be useful,
|
10 |
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11 |
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
12 |
|
|
Library General Public License for more details.
|
13 |
|
|
|
14 |
|
|
You should have received a copy of the GNU Library General Public
|
15 |
|
|
License along with this program; if not, write to the Free Software
|
16 |
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */
|
17 |
|
|
|
18 |
|
|
#ifndef _SYMTAB_H_
|
19 |
|
|
#define _SYMTAB_H_
|
20 |
|
|
|
21 |
|
|
#include <stdint.h>
|
22 |
|
|
|
23 |
|
|
#define SYMTAB_SIZE 4096
|
24 |
|
|
|
25 |
|
|
uint32_t hash_string (const char *);
|
26 |
|
|
char *trim_string (char *);
|
27 |
|
|
char *localize_string (char *);
|
28 |
|
|
|
29 |
|
|
struct sym_info
|
30 |
|
|
{
|
31 |
|
|
const char *symbol;
|
32 |
|
|
uint8_t type;
|
33 |
|
|
uint32_t addr;
|
34 |
|
|
struct sym_info *next;
|
35 |
|
|
};
|
36 |
|
|
|
37 |
|
|
void init_symtab(void);
|
38 |
|
|
|
39 |
|
|
void push_sym(const char *, uint8_t, uint32_t);
|
40 |
|
|
struct sym_info *get_sym(const char *);
|
41 |
|
|
void reloc_syms(uint8_t type, uint32_t offset);
|
42 |
|
|
|
43 |
|
|
#endif /* _SYMTAB_H_ */
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.