News for hackers. Stuff that matters.
Re:Should you learn C to “learn how the computer works”? by arcticbull on Tuesday October 02, 2018 @04:27PM (#18125410)
You are more than welcome to use a stack in an assembly language too. What you say certainly can be true, but many architectures include dedicated stack pointer registers and operations to manipulate them, either special-purpose (AVR, __SP_H__ and __SP_L__, push, pop) or more generic (x86 %sp, push, pop). I'd argue that functions exist at the hardware level to some extent too in architectures that support, for instance, link registers (PPC $LR) and special instructions (call, ret instead of a generic jump family). Calling conventions, sure, are an attraction over functions.

There are no comments on this comment yet.