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.
関数呼び出しごとにスタック フレームをヒープに割り当てたいのですが、そのためには関数ごとにスタック ベース ポインターを変更する必要があります。
そのポインターを取得して Linux の C で変更する方法はありますか?
関数を見てくださいalloca()。その使用は推奨されませんが、ほとんどのコンパイラには実装があります。
alloca()