diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-10-04 13:42:56 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-10-04 13:42:56 -0700 |
commit | 9d637df6daa2f079ac3cd7623ab6694e4692d1b9 (patch) | |
tree | edfe6dddc84d094b83d24e4a609351a4a5105366 /nasm.c | |
parent | 12e46510bc185fff839530bba0c7becaaf307037 (diff) | |
download | nasm-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 { |