|
From: Åke R. <ake...@gm...> - 2017-05-10 21:14:27
|
On 2017-05-10 23:02, Philipp Klaus Krause wrote: > Sound like push() at line 1023 of src/stm8/gen.c, pop () at line 1051 >> and adjustStack() at line 1176. >> > Actually, codegen also needs to keep track of the offsets of variables > from the stack pointer. It does so in G.stack.pushed. Besides the three > functions listed above, the only places in stm8 codegen where > G.stack.pushed is written is in genFunction() and genCmpEQorNE(). > > So we just place calls to updateCFA() wherever we update G.stack.pushed? > > Philipp > > I had just a quick look, you are right a call to updateCFA() where G.stack.pushed is changed might do the trick. Although what you mentioned about there is a frame pointer already implemented came to me as news.... /Ake |