Include two more std::string functions in wasm stdlib

This commit is contained in:
Max Brunsfeld 2023-10-27 21:54:23 +01:00
parent 2c0b52eec6
commit 0743edd162
4 changed files with 1947 additions and 1915 deletions

View file

@ -17,7 +17,7 @@
#include "./lexer.h"
#include "./wasm/wasm-stdlib.h"
#define STDLIB_SYMBOL_COUNT 30
#define STDLIB_SYMBOL_COUNT 32
const char *STDLIB_SYMBOLS[STDLIB_SYMBOL_COUNT] = {
"malloc",
"free",
@ -47,7 +47,8 @@ const char *STDLIB_SYMBOLS[STDLIB_SYMBOL_COUNT] = {
"_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev",
"_ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw",
"_ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev",
"_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_no_aliasILb0EEERS5_PKcm",
"_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_no_aliasILb1EEERS5_PKcm",
"_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE25__init_copy_ctor_externalEPKcm",
"_ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_externalEPKcm",
};

View file

@ -7,7 +7,8 @@
"__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev",
"__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw",
"__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev",
"__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_no_aliasILb0EEERS5_PKcm",
"__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_no_aliasILb1EEERS5_PKcm",
"__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE25__init_copy_ctor_externalEPKcm",
"__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE17__assign_externalEPKcm",
@ -32,4 +33,4 @@
"_strlen",
"_towupper",
"_towlower"
]
]

File diff suppressed because it is too large Load diff

View file

@ -28,7 +28,5 @@ EMSDK_DIR="./target/emsdk"
) >&2
(
source "$EMSDK_DIR/emsdk_env.sh" > /dev/null
emcc --version >&2
echo export $(env | egrep '^(PATH|EM.*)')
echo "source \"$EMSDK_DIR/emsdk_env.sh\""
)