Relative Content

Tag Archive for low-level

What interface does python use to implement sockets?

When I programmed in python, I believe I interfaced with the transport layer using sockets. If python was programmed by humans, they must have used an interface that was “lower” than sockets, to provide us with the interface to sockets. I assume firewalls, also programmed by humans, use interfaces of lower layers in the same manner, so is there a way to access such lower layers, in terms of programming?

What interface does python use to implement sockets?

When I programmed in python, I believe I interfaced with the transport layer using sockets. If python was programmed by humans, they must have used an interface that was “lower” than sockets, to provide us with the interface to sockets. I assume firewalls, also programmed by humans, use interfaces of lower layers in the same manner, so is there a way to access such lower layers, in terms of programming?

How do VMs implement function calling?

I’m reading a compiler textbook that compiles to some form of assembly. Since I don’t know this assembly language I decided to invent my own simple “assembly language” and implement a basic “virtual machine” which will execute these instructions.

Do VMs use one stack for everything? [duplicate]

This question already has answers here: Stack-instructions machines [closed] (5 answers) Closed 9 years ago. Most VMs have a “call stack” to keep track of where to return from each function that was called. This is often simply regarded as “the stack”. However often a stack is needed for operations that aren’t related to function […]