Can a C compiler rearrange stack variables?

前端 未结 11 2327
孤街浪徒
孤街浪徒 2020-12-09 11:07

I have worked on projects for embedded systems in the past where we have rearranged the order of declaration of stack variables to decrease the size of the resulting executa

11条回答
  •  孤街浪徒
    2020-12-09 11:29

    it is compiler specifics, one can make his own compiler that would do the inverse if he wanted it that way.

提交回复
热议问题