Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Given the circumstances of C's birth, it was, in many ways, optimized to be ergonomic for the compiler writer. If you don't ever need to return structs, then you can always just use the same register to hold the return value. Similarly, if there are no struct-typed arguments, then each argument is either a register, or a single machine word on the stack (C did other things for the latter - e.g. consider the conversion rules for functions called without being declared).


Quite to be expected given its ancestry, BCPL was originally designed only to bootstrap CPL.




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

Search: