On 20/02/2011 04:28 PM, Warp wrote:
> Invisible<voi### [at] dev null> wrote:
>>>> This only matters if you're interested in performance.
>>>
>>> Why else would you use assembly?
>
>> Perhaps because you need to perform specific hardware-level operations
>> that C doesn't support. (E.g., selecting a different processor mode or
>> something.) There's usually a few bits of the OS written in assembly
>> because they do very low-level stuff.
>
> It's not like you need to write the entire program in assembly just
> because you need to execute one asm instruction not supported by the
> language. They invented inline asm for a reason.
Sure. I was just pointing out that "performance" isn't the only possible
reason for writing assembly. My original point was that "nobody writes
assembly any more"...
Post a reply to this message
|