Move P-Code execution logic from interpreters/prun to system/prun

This commit is contained in:
Gregory Nutt 2014-05-09 11:09:43 -06:00
parent 415500c6d9
commit a3e2598d90
3 changed files with 6 additions and 2 deletions

View file

@ -72,7 +72,7 @@ endif
config PCODE
bool "Support P-Code Applications"
default n
depends on INTERPRETERS_PCODE && INTERPRETERS_PRUN && (!NUTTX_KERNEL || EXPERIMENTAL)
depends on INTERPRETERS_PCODE && SYSTEM_PRUN && (!NUTTX_KERNEL || EXPERIMENTAL)
---help---
Enable support for interpreted P-Code binaries. P-Code binaries are
generated by the NuttX Pascal compiler.

View file

@ -74,6 +74,10 @@ Here is a simple test configuration using the NuttX simulator:
CONFIG_INTERPRETERS_PCODE=y
And the P-Code runtime support:
CONFIG_SYSTEM_PRUN=y
This enables building the PCODE binary format
CONFIG_PCODE=y

View file

@ -47,7 +47,7 @@
#include <errno.h>
#include <debug.h>
#include <apps/interpreters/prun.h>
#include <apps/prun.h>
#include <nuttx/kmalloc.h>
#include <nuttx/poff.h>