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

Yes, the PDP-11 instruction set makes null-terminated strings especially efficient. Strcpy() is 3 instructions per character, for example.

The PDP-11 features that make this possible are (1) post increment addressing and (2) MOVE instructions set the condition codes.



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

Search: