pmfeatures.h File Reference

VM feature configuration. More...

Go to the source code of this file.

Defines

#define PM_HEAP_SIZE   0x7000
#define HAVE_PRINT
#define HAVE_GC
#define HAVE_FLOAT
#define PM_FLOAT_LITTLE_ENDIAN
#define HAVE_DEL
#define HAVE_IMPORTS
#define HAVE_DEFAULTARGS
#define HAVE_REPLICATION
#define HAVE_CLASSES
#define HAVE_ASSERT
#define HAVE_GENERATORS
#define HAVE_BACKTICK
#define HAVE_STRING_FORMAT


Detailed Description

VM feature configuration.

Compile time switches to include features or save space.

IMPORTANT: All of the HAVE_* items in this file should also exist in the PM_FEATURES dict in src/tools/pmImgCreator.py. If the item is defined here, the corresponding dict value should be True; False otherwise.


Define Documentation

#define HAVE_ASSERT

When defined, the code to support the assert statement is included in the build.

#define HAVE_BACKTICK

When defined, the code to support the backtick operation (`x`) is included in the build. REQUIRES stdio.h to have snprintf()

#define HAVE_CLASSES

When defined, the code to support classes, instances, methods, etc. is included in the build.

#define HAVE_DEFAULTARGS

When defined, the code to support default arguments to functions is included in the build.

#define HAVE_DEL

When defined, the code to support the keyword del is included in the build. This involves the bytecodes: DELETE_SUBSCR, DELETE_NAME, DELETE_ATTR, DELETE_GLOBAL and DELETE_FAST.

#define HAVE_FLOAT

When defined, the code to support floating point objects is included in the build.

#define HAVE_GC

When defined, the code to perform mark-sweep garbage collection is included in the build and automatic GC is enabled. When undefined the allocator will distribute memory until none is left, after which a memory exception will occur.

#define HAVE_GENERATORS

When defined, the code to support the yield keyword's use for generator-iterators is included in the build.

#define HAVE_IMPORTS

When defined, the code to support the IMPORT_FROM and IMPORT_STAR styles is included in the build.

#define HAVE_PRINT

When defined, bytecodes PRINT_ITEM and PRINT_NEWLINE are supported. Along with these, helper routines in the object type are compiled in that allow printing of the object. REQUIRES stdio.h to have snprintf()

#define HAVE_REPLICATION

When defined, the code to support sequence (list, tuple, string) replcation is included in the build. This feature is required by the builtin function __bi.map().

#define HAVE_STRING_FORMAT

When defined, the code to perform string formatting using the binary modulo operator is included in the build. REQUIRES stdio.h to have snprintf()

#define PM_HEAP_SIZE   0x7000

Defines the size of the static heap


Generated on Wed Feb 24 13:37:02 2010 for Python-on-a-chip by  doxygen 1.5.9