1 /*---------------------------------------------------------------------------* 2 Project: TwlSDK - include - 3 File: section.h 4 5 Copyright 2003-2008 Nintendo. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 13 $Date:: 2008-09-17#$ 14 $Rev: 8556 $ 15 $Author: okubata_ryoma $ 16 *---------------------------------------------------------------------------*/ 17 #ifndef NITRO_SECTION_H_ 18 #define NITRO_SECTION_H_ 19 20 #ifdef __cplusplus 21 extern "C" { 22 #endif 23 24 25 //-------------------------------------------------------------------------------- 26 // section definition for LCF 27 #if defined(SDK_CW) || defined(SDK_RX) || defined(__MWERKS__) 28 #ifdef SDK_ARM9 29 #pragma define_section ITCM ".itcm" ".itcm.bss" abs32 RWX 30 #pragma define_section DTCM ".dtcm" ".dtcm.bss" abs32 RWX 31 #else 32 #pragma define_section WRAM ".wram" ".wram.bss" abs32 RWX 33 #pragma define_section MAIN ".main" ".main.bss" abs32 RWX 34 #endif 35 #pragma define_section PARENT ".parent" abs32 RWX 36 #pragma define_section VERSION ".version" abs32 RWX 37 #elif defined(SDK_PRODG) 38 // nothing to do 39 #elif defined(SDK_ADS) 40 TO BE DEFINED 41 #elif defined(SDK_GCC) 42 TO BE DEFINED 43 #endif 44 #ifdef __cplusplus 45 } /* extern "C" */ 46 #endif 47 /* NITRO_SECTION_H_ */ 48 #endif 49