On Jul 7, 2016, at 7:25 AM, Gordo Cath <ds@y23.org> wrote:
Hi William, Thanks for the help. I'm guessing the register keyword doesn't address variables directly or doesn't do what I thought it was doing.
You are correct that you are incorrect. :-) The "register" keyword is a largely deprecated "hint" to the compiler that it may want to store that variable in a register for faster access; in reality most C optimizers are pretty good at figuring out what will go in registers and what wont, so the register keyword is largely if not completely ignored. To actually use registers you have to use assembly instructions and the extended asm syntax of the form I gave a sample of. William Kucharski _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com