00001 /* 00002 # This file is Copyright 2010 Dean Hall. 00003 # 00004 # This file is part of the Python-on-a-Chip program. 00005 # Python-on-a-Chip is free software: you can redistribute it and/or modify 00006 # it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1. 00007 # 00008 # Python-on-a-Chip is distributed in the hope that it will be useful, 00009 # but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00011 # A copy of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1 00012 # is seen in the file COPYING up one directory from this. 00013 */ 00014 00015 #ifndef _PLAT_H_ 00016 #define _PLAT_H_ 00017 00018 // Note: for unit testing, no Python heap is needed, so make it tiny. 00019 // The unit tests need lots of heap and stack, so a small Python heap 00020 // allows that. 00021 #ifdef UNIT_TEST 00022 #define PM_HEAP_SIZE 100 00023 #elif defined(__DEBUG) 00024 #define PM_HEAP_SIZE 6900 00025 #else 00026 #define PM_HEAP_SIZE 6980 00027 #endif 00028 00029 #define PM_FLOAT_LITTLE_ENDIAN 00030 00031 #define PM_PLAT_HEAP_ATTR __attribute__((far)) __attribute__((aligned ((4)))) 00032 00033 #endif /* _PLAT_H_ */