Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
特定の静的で揮発性の変数の初期化をスキップするよう gcc に指示する方法はありますか? 起動時にゼロにする必要のない循環バッファー (揮発性と宣言されている) がいくつかあり、MCU では約 2500 tcy の無駄です。
前もって感謝します、
を使用する場合はgcc、配列オブジェクトを.noinitセクションに配置できます。
gcc
.noinit
uint8_t arr[1024] __attribute__ ((section (".noinit")));