Hacker News new | ask | show | jobs
by x128 1318 days ago
C is the wrong tool for defining ABIs.
1 comments

C isn't used for defining ABIs. ABI's have content in them like which registers must be saved by a called function and which ones carry arguments. None of that is C. However, out of necessity, ABI definitions refer to some C concepts and must include details like how structures are to be laid out by C compilers.