1 /* -------------------------------- Arctic Core ------------------------------
\r
2 * Arctic Core - the open source AUTOSAR platform http://arccore.com
\r
4 * Copyright (C) 2009 ArcCore AB <contact@arccore.com>
\r
6 * This source code is free software; you can redistribute it and/or modify it
\r
7 * under the terms of the GNU General Public License version 2 as published by the
\r
8 * Free Software Foundation; See <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.
\r
10 * This program is distributed in the hope that it will be useful, but
\r
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
\r
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
\r
14 * -------------------------------- Arctic Core ------------------------------*/
\r
25 #if defined(__GNUC__) || defined(__DCC__)
\r
27 #define SECTION_RAMLOG __attribute__ ((section (".ramlog")))
\r
30 #elif defined(__CWCC__)
\r
32 /* The compiler manual states:
\r
33 * The section name specified in the
\r
34 * __declspec(section <section_name>) statement must be the
\r
35 * name of an initialized data section. It is an error to use the uninitialized
\r
36 * data section name.
\r
38 * NOTE!! The initialized data section name is __declspec() does not mean that
\r
39 * it will end up in that section, if its BSS data it will end-up in
\r
40 * ramlog_bss instead.
\r
42 * NOTE!! Naming the initialized and uninitialized data section to the same
\r
43 * name will generate strange linker warnings (sometimes)
\r
46 #pragma section RW ".ramlog_data" ".ramlog_bss"
\r
47 #define SECTION_RAMLOG __declspec(section ".ramlog_data")
\r