▲ | lelanthran 4 days ago | ||||||||||||||||
> This idea is some 10yrs behind. Akshually[1] ... > And no, thinking that C is "closer to the processor" today is incorrect THIS thinking is about 5 years out of date. Sure, this thinking you exhibit gained prominence and got endlessly repeated by every critic of C who once spent a summer doing a C project in undergrad, but it's been more than 5 years that this opinion was essentially nullified by
Assembler? After all if everything else is "Just as close as C, but not closer", then just what kind of spectrum are you measuring on, that has a lower bound which none of the data gets close to?You're repeating something that was fashionable years ago. =========== [1] There's always one. Today, I am that one :-) | |||||||||||||||||
▲ | steveklabnik 4 days ago | parent | next [-] | ||||||||||||||||
Standard C doesn't have inline assembly, even though many compilers provide it as an extension. Other languages do. > After all if everything else is "Just as close as C, but not closer", then just what kind of spectrum are you measuring on The claim about C being "close to the machine" means different things to different people. Some people literally believe that C maps directly to the machine, when it does not. This is just a factual inaccuracy. For the people that believe that there's a spectrum, it's often implied that C is uniquely close to the machine in ways that other languages are not. The pushback here is that C is not uniquely so. "just as close, but not closer" is about that uniqueness statement, and it doesn't mean that the spectrum isn't there. | |||||||||||||||||
| |||||||||||||||||
▲ | adgjlsfhk1 4 days ago | parent | prev | next [-] | ||||||||||||||||
Lots of languages at a higher level than C are closer to the processor in that they have interfaces for more instructions that C hasn't standardized yet. | |||||||||||||||||
| |||||||||||||||||
▲ | raverbashing 4 days ago | parent | prev [-] | ||||||||||||||||
> Okay, If C is "not close to the process", what's closer? LLVM IR is closer. Still higher level than Assembly The problem is thus: char a,b,c; c = a+b; Could not be more different between x86 and ARM | |||||||||||||||||
|