Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
flohofwoe
on Dec 11, 2023
|
parent
|
context
|
favorite
| on:
How many lines of C it takes to execute a + b in P...
IME I'd say a line of typical C code (not necessarily C++ code) maps to around 1..5 instructions on average. It's still a quite useful measure to get a rough idea how much CPU work happens.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: