Added support for M16C small memory model

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1507 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2009-02-15 19:10:29 +00:00
parent 4880ca3f30
commit 59f461ac30

View File

@ -1,7 +1,7 @@
/****************************************************************************
* include/nuttx/compiler.h
*
* Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
* Copyright (C) 2007, 2008, 2009 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@ -99,6 +99,20 @@
# define DSEG
# define CODE
#ifdef __m32c__
/* Select the small, 16-bit addressing model */
# define CONFIG_SMALL_MEMORY 1
/* Long and int are not the same size */
# define CONFIG_LONG_IS_NOT_INT 1
/* Pointers and int are the same size */
# undef CONFIG_PTR_IS_NOT_INT
#else
/* Select the large, 32-bit addressing model */
# undef CONFIG_SMALL_MEMORY
@ -110,6 +124,7 @@
/* Pointers and int are the same size */
# undef CONFIG_PTR_IS_NOT_INT
#endif
/* GCC supports inlined functions */