Procházet zdrojové kódy

Merge pull request #98 from expipiplus1/smaller-startup-section

Do not put ResetHandler in .startup with clang
teensy4-core
Paul Stoffregen před 9 roky
rodič
revize
be531bc968
1 změnil soubory, kde provedl 5 přidání a 0 odebrání
  1. +5
    -0
      teensy3/mk20dx128.c

+ 5
- 0
teensy3/mk20dx128.c Zobrazit soubor

@@ -577,7 +577,12 @@ void startup_early_hook(void) __attribute__ ((weak, alias("startup_default_earl
void startup_late_hook(void) __attribute__ ((weak, alias("startup_default_late_hook")));


#ifdef __clang__
// Clang seems to generate slightly larger code with Os than gcc
__attribute__ ((optimize("-Os")))
#else
__attribute__ ((section(".startup"),optimize("-Os")))
#endif
void ResetHandler(void)
{
uint32_t *src = &_etext;

Načítá se…
Zrušit
Uložit