News for hackers. Stuff that matters.
Re:The Mainframe Is a Modern Platform by lxdesk on Wednesday May 20, 2020 @07:42AM (#23245696)
These are classified as "libc things". When using mov you can still access libc like any other program. Go study movfuscator(which I linked again) if you would like a full understanding[0]. When you have to interface C with a not-very-Unixy system like Webassembly or these mainframes, you have to link to a compatible libc that remaps everything appropriately.

Malloc isn't particularly more special than any libc function. It simply supports the fantasy that the memory is unlimited in scale. It was always of a static size, you were just handing off the chore of dividing it up. You can usefully implement dynamic sizing in languages with static memory allocation by pre-allocating large arrays and then maintaining handles and liveness flags. This is, in fact, how every console game used to do it until available memory sizes got into the hundreds of megabytes. Fragmentation and the subsequent crashes from OOM presented too much of a concern before then.

[0] https://github.com/xoreaxeaxeax/movfuscator

Re:The Mainframe Is a Modern Platform by voldacar on Wednesday May 20, 2020 @07:32PM (#23253272)
Ah I thought the idea was to make the whole program use nothing but mov instructions. Still cool though. That's an interesting point too about console games, it seems to make a lot of sense if the whole machine can be dedicated to running just your program
Re:The Mainframe Is a Modern Platform by monocasa on Wednesday May 20, 2020 @09:53AM (#23246765)
> interface C with a not-very-Unixy system like Webassembly or these mainframes

To be fair, z/OS is technically a Unix these days.