summaryrefslogtreecommitdiff
path: root/nasm.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-10-04 13:42:56 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-10-04 13:42:56 -0700
commit9d637df6daa2f079ac3cd7623ab6694e4692d1b9 (patch)
treeedfe6dddc84d094b83d24e4a609351a4a5105366 /nasm.c
parent12e46510bc185fff839530bba0c7becaaf307037 (diff)
downloadnasm-9d637df6daa2f079ac3cd7623ab6694e4692d1b9.tar.gz
nasm-9d637df6daa2f079ac3cd7623ab6694e4692d1b9.tar.bz2
nasm-9d637df6daa2f079ac3cd7623ab6694e4692d1b9.zip
Rewrite the handling of SAA's to allow random access
SAA's were never intended to allow random access, but several backends do random or semirandom access via saa_fread() and saa_fwrite() anyway. Rewrite the SAA system to allow for efficient random access. On "label.pl 10000000" this improves performance by a factor of 12.
Diffstat (limited to 'nasm.c')
-rw-r--r--nasm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nasm.c b/nasm.c
index 726fd09..12b51af 100644
--- a/nasm.c
+++ b/nasm.c
@@ -77,7 +77,7 @@ int32_t abs_offset; /* ABSOLUTE offset */
static struct RAA *offsets;
static struct SAA *forwrefs; /* keep track of forward references */
-static struct forwrefinfo *forwref;
+static const struct forwrefinfo *forwref;
static Preproc *preproc;
enum op_type {