Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
swolchok
on Nov 29, 2016
|
parent
|
context
|
favorite
| on:
Beating the Compiler
It's not mentioned in the article, so I'll note that the code presented is Windows-specific. Windows uses a different calling convention (
https://en.wikipedia.org/wiki/X86_calling_conventions#Micros...
) from the one used on Mac and Linux systems (
https://en.wikipedia.org/wiki/X86_calling_conventions#System...
), so if you want to see the assembly you get from clang on Mac, you'll want to annotate sortRoutine with __attribute__((ms_abi)).
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: