Hacker News new | past | comments | ask | show | jobs | submit login

Assembly may be easier, but programming in assembly is a lot more tedious. A simple expression like "y=7*x+5" is at least four instructions, assuming you have a MUL instruction. And string manipulation is just as bad, if not worse, than in C.

Two on Intel, assuming the values should go in registers:

  imul rY, rX, 7
  add rY, 5

I assume he's including the:

    mov rX, [...]
    mov [...], rY

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact