Message on thread Stack Usage?

Re: Stack Usage? (2018-07-07 18:47, toml12953, #81588)

[Reply To Message #81585]
> That was a wrong conclusion.
> The assembler code for the ackermann function is as follows.
> System stack wastes more memory at least 112 bytes for one call.
>
> output\BASICunit.pas:43 begin
> 0000000100050D30 55 push %rbp
> 0000000100050D31 4889e5 mov %rsp,%rbp
> 0000000100050D34 488d6424a0 lea -0x60(%rsp),%rsp
> 0000000100050D39 48894de8 mov %rcx,-0x18(%rbp)
> 0000000100050D3D c5fb114df8 vmovsd %xmm1,-0x8(%rbp)
> 0000000100050D42 c5fb1155f0 vmovsd %xmm2,-0x10(%rbp)

So I should add 112 to stksiz on each iteration?
Reply to #81585

Reply to #81588×

You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

Thread

Stack Usage? (2018-07-06 21:53, toml_12953, #81579)
Re: Stack Usage? (2018-07-07 14:31, SHIRAISHI Kazuo, #81583)
Re: Stack Usage? (2018-07-07 17:25, SHIRAISHI Kazuo, #81585)
Re: Stack Usage? (2018-07-07 18:47, toml12953, #81588)
Re: Stack Usage? (2018-07-08 09:31, SHIRAISHI Kazuo, #81592)
Re: Stack Usage? (2018-07-14 10:30, Shiraishi Kazuo, #81601)
Re: Stack Usage? (2018-07-07 17:54, SHIRAISHI Kazuo, #81587)