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
302 B
C
16 lines
302 B
C
// ARM specific stuff
|
|
|
|
#include "py/mpconfig.h"
|
|
|
|
#if MICROPY_EMIT_ARM
|
|
|
|
// This is defined so that the assembler exports generic assembler API macros
|
|
#define GENERIC_ASM_API (1)
|
|
#include "py/asmarm.h"
|
|
|
|
#define N_ARM (1)
|
|
#define EXPORT_FUN(name) emit_native_arm_##name
|
|
#include "py/emitnative.c"
|
|
|
|
#endif
|