LINKER_FLAGS=-mthumb -nostartfiles -Xlinker -oRTOSDemo.elf -Xlinker -M -Xlinker -Map=rtosdemo.map\r
\r
DEBUG=-g\r
-OPTIM=-O1\r
+OPTIM=-O0\r
\r
\r
CFLAGS= $(DEBUG) \\r
-D PACK_STRUCT_END=__attribute\(\(packed\)\) \\r
-D ALIGN_STRUCT_END=__attribute\(\(aligned\(4\)\)\) \\r
-fomit-frame-pointer \\r
- -mthumb-interwork\r
+ -mthumb-interwork \\r
+ -fno-dwarf2-cfi-asm \\r
+ -fno-strict-aliasing\r
\r
THUMB_SOURCE= \\r
main.c \\r
*(.bss)\r
} >ram\r
\r
- \r
/* Align here to ensure that the .bss section occupies space up to\r
_end. Align after .bss to ensure correct alignment even if the\r
.bss section disappears because there are no input sections. */\r
/***************************************************************************/
/* Register name faking - works in collusion with the linker. */
-register char * stack_ptr asm ("sp");
+register char * stack_ptr __asm ("sp");
caddr_t _sbrk_r (struct _reent *r, int incr)
{
- extern char end asm ("end"); /* Defined by the linker. */
+ extern char end __asm ("end"); /* Defined by the linker. */
static char * heap_end;
char * prev_heap_end;