r/computerscience • • 12d ago

Discussion Is C an "Assembly-like" Language?

I know C is programing language. It is not architecture specific. One writes the source code and a compiler turns it into an executable depending on what settings you tell it. So the same source code would output different executables depending on what you want to run it on and what optimization options are on. Assembly languages on the other hand are architecture specific. Is C "Assembly-like"? To be honest I'm not sure what would be Assembly-like. I guess if a program written in multiple languages that have the same behavior, if the C version (using something like GNU C Compiler) looked closer to its assembly than, say its Java version (GraalVM), then that counts.

46 Upvotes

131 comments sorted by

View all comments

1

u/RibozymeR 12d ago

It kinda used to be on the PDP-11, maybe. On today's systems, it's basically the same level of abstraction as any procedural language.