3 ms·
If I write the foo function in assembler, it will also be slower than just a+b. The assembler won't be able to inline the function, which makes the C version po
by virtualized 9y ago
If I write the foo function in assembler, it will also be slower than just a+b. The assembler won't be able to inline the function, which makes the C version possibly more efficient.
You are comparing apples and oranges.
- ordu 9y agoYes, I agree. But I'm not trying to persuade anyone to use assembly instead of C. I'm trying to say that experience with asm greatly helps to to see a difference between `foo`, `inline foo` and `virual foo`.