News for hackers. Stuff that matters.
Re:Lisp and Smalltalk are dead: It’s C all the way down by ajg1977 on Friday August 14, 2009 @07:04PM (#764036)
>> 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.

Re:Lisp and Smalltalk are dead: It’s C all the way down by aaronblohowiak on Friday August 14, 2009 @07:24PM (#764055)
I'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.)