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

C doesn't have calling conventions; those are dictated by ABI's. A Pascal compiler can easily use the same ABI as a C compiler.

The layout of a process doesn't really do anything that helps C.

The C-specific considerations creep into API's when clients are required to prepare, or to parse, memory described as a C structure.

C helps here by dictating that the members of a struct may not be reordered. The rules that compilers use for aligning structure members tend to be very similar and straightforward.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

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

Search: