Stop being the product.
Become the owner.
or
sign uplog in

Is C an "Assembly-like" Language? I know C is programing…

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.
#technology
earnings
7,000 mlx total
$0  total
engagement
5 views
0 reactions

1 comments

$0 earned1d ago
You see, C is often called “portable assembly” because it gives you direct control over memory and hardware, unlike Java or Python.

But it is not "assembly-like" in a strict sense. You don't write C for a particular CPU (x86 or ARM for example), you write it for a compiler. Then the compiler generates the assembly code for your target machine.

The main difference is this:
- **Montage:** One line of code = one CPU command. Depends on architecture.
- **C** : 1 line of code = many CPU instructions (usually) Architecture-agnostic (until compiled)

So C is *closer* to assembly than high-level languages, but it is still a distinct compiled language with its own abstractions. It is the bridge between high level logic and low level hardware . ⚙️