encode2: Add new encoder API, one func per instr.

This is an *experimental* (read: unstable) API which exposes encoding
functionality as one function per instruction. This makes the encoding
process itself significantly faster, at the cost of a much larger binary
size (~1 MiB of code, no data) and much higher compilation time.
This commit is contained in:
Alexis Engelke
2022-02-20 17:21:04 +01:00
parent 003c7ca750
commit 6b8c2968c1
7 changed files with 646 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
project('fadec', ['c'], default_options: ['warning_level=3', 'c_std=c99'],
project('fadec', ['c'], default_options: ['warning_level=3', 'c_std=c11'],
meson_version: '>=0.40')
python3 = find_program('python3')
@@ -45,6 +45,11 @@ if get_option('with_encode')
headers += files('fadec-enc.h')
sources += files('encode.c')
endif
if get_option('with_encode2')
components += 'encode2'
headers += files('fadec-enc2.h')
sources += files('encode2.c')
endif
generate_args = []
if get_option('archmode') != 'only64'