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.
まず第一に、私のアプリケーションは、仮想メモリや MMU などを備えた「通常の」オペレーティング システムでは実行されませんが、物理メモリの量が固定され、制限された組み込みシステムで実行されます。
したがって、この質問はプレーンな ANSI-C に焦点を当てています。malloc() を呼び出すと、使用可能なメモリの量が割り当てられたサイズだけ減少します。残りの空きメモリ量を取得するために使用できる ANSI-C 関数はありますか?