bc: in execution loop, reload stack only after insts which can change it
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 19 Dec 2018 11:35:27 +0000 (12:35 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 19 Dec 2018 11:35:27 +0000 (12:35 +0100)
commitb80d7aad1b001479942c314690e6979d8290bdfb
tree45e53f1aca73e38b6bfc42e803e310906a163065
parentd6e24bd795d5d1d00c2414efe2e5d9e1152c5f5b
bc: in execution loop, reload stack only after insts which can change it

Only these functions affect G.prog.exestack:
zbc_program_read
zbc_program_call
zbc_program_return
zbc_program_nquit
zbc_program_execStr

function                                             old     new   delta
zbc_program_exec                                    3995    4093     +98
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/0 up/down: 98/0)               Total: 98 bytes
   text    data     bss     dec     hex filename
 981364     485    7296  989145   f17d9 busybox_old
 981462     485    7296  989243   f183b busybox_unstripped

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/bc.c