Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| saving_flash_space [2014/10/12 07:26] – created admin | saving_flash_space [2019/12/04 15:06] (current) – [assertions] admin | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| * Literal pool usage reduction | * Literal pool usage reduction | ||
| * e.g. when going from ARM to Thumb | * e.g. when going from ARM to Thumb | ||
| + | * group globals into structures | ||
| + | * .sinit usage (construct instead simple global structs) | ||
| + | * selectively enable optimization for some files | ||
| + | * refactoring duplicate code | ||
| + | * reduce usage of standard library functions | ||
| + | ====== assertions ====== | ||
| + | #define ASSERT(expr) \ | ||
| + | if (expr) | ||
| + | {} \ | ||
| + | else \ | ||
| + | aFailed(F_NUM, | ||
| + | | ||
| + | trap() | ||
| + | { | ||
| + | #ifndef NDEBUG | ||
| + | #define _BKPT __ASM(“bkpt 0″) | ||
| + | while(1); | ||
| + | #endif | ||
| + | } | ||
| + | |||
| + | http:// | ||
| + | |||
| + | http:// | ||
| + | |||
| + | http:// | ||
| + | |||
| + | http:// | ||
| + | |||
| + | https:// | ||