mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-02 04:39:01 +00:00
Test
```
$ cat basic.txt
test_a
test_b
test_c
$ cat math.txt
acosf
asinf
atan2f
ceilf
cosf
expf
$ ./mksymtab.sh ./ g_TEST basic.txt
#include <nuttx/compiler.h>
#include <nuttx/symtab.h>
extern void *test_a;
extern void *test_b;
extern void *test_c;
const struct symtab_s g_TEST_exports[] =
{
{"test_a", &test_a},
{"test_b", &test_b},
{"test_c", &test_c},
};
const int g_TEST_nexports = sizeof(g_TEST_exports) / sizeof(struct symtab_s);
$ ./mksymtab.sh ./ g_TEST basic.txt math.txt
#include <nuttx/compiler.h>
#include <nuttx/symtab.h>
extern void *acosf;
extern void *asinf;
extern void *atan2f;
extern void *ceilf;
extern void *cosf;
extern void *expf;
extern void *test_a;
extern void *test_b;
extern void *test_c;
const struct symtab_s g_TEST_exports[] =
{
{"acosf", &acosf},
{"asinf", &asinf},
{"atan2f", &atan2f},
{"ceilf", &ceilf},
{"cosf", &cosf},
{"expf", &expf},
{"test_a", &test_a},
{"test_b", &test_b},
{"test_c", &test_c},
};
const int g_TEST_nexports = sizeof(g_TEST_exports) / sizeof(struct symtab_s);
```
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
|
||
|---|---|---|
| .. | ||
| Wasm | ||
| bitmap_converter.py | ||
| check-hash.sh | ||
| CMakeLists.txt | ||
| host_sysinfo.py | ||
| Kconfig | ||
| mkimport.sh | ||
| mkkconfig.bat | ||
| mkkconfig.sh | ||
| mkromfsimg.sh | ||
| mksymtab.sh | ||
| pre-commit | ||
| WASI-SDK.defs | ||
| Wasm.mk | ||