4 ms·
Yes, the PDP-11 instruction set makes null-terminated strings especially efficient. Strcpy() is 3 instructions per character, for example. The PDP-11 features
by jamesbowman 11y ago
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.