3 ms·
>> C stack management and function calling requires work that is not part of a CPU Well in C you tend not to manage the stack. As for function calls, what exac
by ajg1977 17y ago
>> C stack management and function calling requires work that is not part of a CPU
Well in C you tend not to manage the stack. As for function calls, what exactly do you think a CPU spends its time doing?
>> malloc and free do not map to anything at the hardware level, these are OS calls
So memory is just some non-physical property of the OS? Erm...
>> I think that people talk about C as an important language because it is difficult to write programs in.
There is a learning curve, but it's hardly difficult. However I think I know the reason for your confusing statements above.
- aaronblohowiak 17y agoI'm afraid you misinterpreted the parent. The parent is saying that C's function calls and stack management are not implemented in hardware. That there is, in effect, a C 'runtime' that implemented these behaviors. Further, malloc and free are not hardware calls. The physical property would be literal ram addresses (not virtual memory, though there is now hardware virtual memory so i digress.)