diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-03-01 21:05:55 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-03-01 21:05:55 +0000 |
commit | 08680a039b6ffc922731d9a1cfdff20ef204dbba (patch) | |
tree | 25bb704377c624f2d63c4bb5ad1df332d44aa78a /nuttx/include/nuttx/compiler.h | |
parent | 129dd27cc4deb042d2f88c65927adc49c338756d (diff) | |
download | nuttx-08680a039b6ffc922731d9a1cfdff20ef204dbba.tar.gz nuttx-08680a039b6ffc922731d9a1cfdff20ef204dbba.tar.bz2 nuttx-08680a039b6ffc922731d9a1cfdff20ef204dbba.zip |
This creates a 8051 build that can run in 24Kb of RAM
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@26 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/nuttx/compiler.h')
-rw-r--r-- | nuttx/include/nuttx/compiler.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nuttx/include/nuttx/compiler.h b/nuttx/include/nuttx/compiler.h index 1ba651503..640129bed 100644 --- a/nuttx/include/nuttx/compiler.h +++ b/nuttx/include/nuttx/compiler.h @@ -74,6 +74,7 @@ # define FAR # define NEAR # define DSEG +# define CODE /* Select the large, 32-bit addressing model */ @@ -127,6 +128,7 @@ #define FAR __xdata #define NEAR __data +#define CODE __code #if defined(SDCC_MODEL_SMALL) # define DSEG __data @@ -167,6 +169,7 @@ # define FAR # define NEAR # define DSEG +# define CODE # undef CONFIG_SMALL_MEMORY # undef CONFIG_HAVE_INLINE |