mirror of
https://github.com/cc65/cc65.git
synced 2026-04-26 13:18:31 +00:00
Added blurb about register variables
git-svn-id: svn://svn.cc65.org/cc65/trunk@1654 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -312,6 +312,10 @@ As a general rule: Use register variables only for pointers that are
|
||||
dereferenced several times in your function, or for heavily used induction
|
||||
variables in a loop (with several 100 accesses).
|
||||
|
||||
When declaring register variables, try to keep them together, because this
|
||||
will allow the compiler to save and restore the old values in one chunk, and
|
||||
not in several.
|
||||
|
||||
And remember: Register variables must be enabled with <tt/-r/ or <tt/-Or/.
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user