nasm/nasmlib
H. Peter Anvin d81a235f33 file: improve the file access interface
A number of fairly common operations are invoked way too many times,
especially when using incbin.  Drastically reduce the number of system
calls that need to be executed, and use memory mapping to reduce
unnecessary double buffering.

We could improve this further by leaving files open once used;
however, that might run into file count problems on some systems.

Still unclear is why we seem to invoke nasm_file_size() twice per pass
for incbin.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2016-09-21 14:07:17 -07:00
..
bsi.c nasmlib: break up nasmlib.c into logical components 2016-05-25 05:43:49 -07:00
crc64.c lib: split library into stdlib and nasmlib; header handling fixes 2016-03-08 12:20:02 -08:00
error.c nasmlib: break up nasmlib.c into logical components 2016-05-25 05:43:49 -07:00
file.c file: improve the file access interface 2016-09-21 14:07:17 -07:00
filename.c nasmlib: break up nasmlib.c into logical components 2016-05-25 05:43:49 -07:00
hashtbl.c Reorganize the source code into subdirectories 2016-05-25 12:06:29 -07:00
ilog2.c lib: split library into stdlib and nasmlib; header handling fixes 2016-03-08 12:20:02 -08:00
malloc.c nasmlib: break up nasmlib.c into logical components 2016-05-25 05:43:49 -07:00
md5c.c lib: split library into stdlib and nasmlib; header handling fixes 2016-03-08 12:20:02 -08:00
raa.c Reorganize the source code into subdirectories 2016-05-25 12:06:29 -07:00
rbtree.c Reorganize the source code into subdirectories 2016-05-25 12:06:29 -07:00
readnum.c nasmlib: break up nasmlib.c into logical components 2016-05-25 05:43:49 -07:00
realpath.c lib: split library into stdlib and nasmlib; header handling fixes 2016-03-08 12:20:02 -08:00
saa.c Reorganize the source code into subdirectories 2016-05-25 12:06:29 -07:00
srcfile.c Merge remote-tracking branch 'origin/nasm-2.12.xx' 2016-05-16 21:27:33 -07:00
string.c nasmlib: break up nasmlib.c into logical components 2016-05-25 05:43:49 -07:00
ver.c lib: split library into stdlib and nasmlib; header handling fixes 2016-03-08 12:20:02 -08:00
zerobuf.c nasmlib: break up nasmlib.c into logical components 2016-05-25 05:43:49 -07:00