ef12a4bd05
Instead of emitnative.c having configuration code for each supported architecture, and then compiling this file multiple times with different macros defined, this patch adds a file per architecture with the necessary code to configure the native emitter. These files then #include the emitnative.c file. This simplifies emitnative.c (which is already very large), and simplifies the build system because emitnative.c no longer needs special handling for compilation and qstr extraction.
16 lines
317 B
C
16 lines
317 B
C
// Xtensa specific stuff
|
|
|
|
#include "py/mpconfig.h"
|
|
|
|
#if MICROPY_EMIT_XTENSA
|
|
|
|
// this is defined so that the assembler exports generic assembler API macros
|
|
#define GENERIC_ASM_API (1)
|
|
#include "py/asmxtensa.h"
|
|
|
|
#define N_XTENSA (1)
|
|
#define EXPORT_FUN(name) emit_native_xtensa_##name
|
|
#include "py/emitnative.c"
|
|
|
|
#endif
|