sixtyforth icon indicating copy to clipboard operation
sixtyforth copied to clipboard

Drop and Store ASM subroutine may improve things

Open drj11 opened this issue 8 years ago • 1 comments

Many words, such as +, -, AND, have a common final part which DROPs then replaces the new TOS with RAX.

Consider factoring it.

drj11 avatar Oct 27 '17 07:10 drj11

Essentially the same observation suggests that storing TOS exclusively in a register would have similar benefit (operators like - would compute result and adjust stack; no store necessary).

drj11 avatar Jan 13 '18 22:01 drj11