]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gas/config/tc-i386.c
x86: generate template sets data at build time
authorJan Beulich <jbeulich@suse.com>
Mon, 12 Dec 2022 07:49:26 +0000 (08:49 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 12 Dec 2022 07:49:26 +0000 (08:49 +0100)
commit65f440c8fb5fc1af9f5aaee181ac7e631573a7e1
tree3949ce649e40e9b1c0a068519169827aa7dc5973
parentdaf15e3e96bf99ec5d3d8a610c3cf44bcc5b1cf1
x86: generate template sets data at build time

Speed up gas startup by avoiding runtime allocation of the instances of
type "templates". At the same time cut the memory requirement to just
very little over half (not even accounting for any overhead
notes_alloc() may incur) by reusing the "end" slot of a preceding entry
for the "start" slot of the subsequent one.
gas/config/tc-i386.c
opcodes/i386-gen.c
opcodes/i386-tbl.h