mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 10:58:49 +08:00
Move P-Code execution logic from interpreters/prun to system/prun
This commit is contained in:
parent
415500c6d9
commit
a3e2598d90
3 changed files with 6 additions and 2 deletions
|
@ -72,7 +72,7 @@ endif
|
||||||
config PCODE
|
config PCODE
|
||||||
bool "Support P-Code Applications"
|
bool "Support P-Code Applications"
|
||||||
default n
|
default n
|
||||||
depends on INTERPRETERS_PCODE && INTERPRETERS_PRUN && (!NUTTX_KERNEL || EXPERIMENTAL)
|
depends on INTERPRETERS_PCODE && SYSTEM_PRUN && (!NUTTX_KERNEL || EXPERIMENTAL)
|
||||||
---help---
|
---help---
|
||||||
Enable support for interpreted P-Code binaries. P-Code binaries are
|
Enable support for interpreted P-Code binaries. P-Code binaries are
|
||||||
generated by the NuttX Pascal compiler.
|
generated by the NuttX Pascal compiler.
|
||||||
|
|
|
@ -74,6 +74,10 @@ Here is a simple test configuration using the NuttX simulator:
|
||||||
|
|
||||||
CONFIG_INTERPRETERS_PCODE=y
|
CONFIG_INTERPRETERS_PCODE=y
|
||||||
|
|
||||||
|
And the P-Code runtime support:
|
||||||
|
|
||||||
|
CONFIG_SYSTEM_PRUN=y
|
||||||
|
|
||||||
This enables building the PCODE binary format
|
This enables building the PCODE binary format
|
||||||
|
|
||||||
CONFIG_PCODE=y
|
CONFIG_PCODE=y
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
#include <apps/interpreters/prun.h>
|
#include <apps/prun.h>
|
||||||
|
|
||||||
#include <nuttx/kmalloc.h>
|
#include <nuttx/kmalloc.h>
|
||||||
#include <nuttx/poff.h>
|
#include <nuttx/poff.h>
|
||||||
|
|
Loading…
Reference in a new issue