Please restore our registers when you’re done with them
randomascii.wordpress.com
Please restore our registers when you’re done with them
1–10 of 142 posts
Re: Please restore our registers when you’re done with them
#2Re: Please restore our registers when you’re done with them
#3Re: Please restore our registers when you’re done with them
#4It’s interesting that there is a zero stored in a register and used for hours - is that significantly faster than just using some actual zero each time? Perhaps CPUs need a “always zero” register or some similar menomic to help harden.
What would an "actual zero" be -- a literal?
Re: Please restore our registers when you’re done with them
#5Re: Please restore our registers when you’re done with them
#6It’s interesting that there is a zero stored in a register and used for hours - is that significantly faster than just using some actual zero each time? Perhaps CPUs need a “always zero” register or some similar menomic to help harden.
Many architectures do have a 0 register because the value is useful. Others have a zero instruction (or both). What would an "actual zero" be -- a literal?
It strikes me as somehow the compiler is making assumptions that aren't being enforced by the ... OS? Language? not sure what, but it's assuming functions restore registers used but that isn't enforced by anything. From my (long ago) time there was PUSHA and POPA but I assume those take quite a bit of "oomph" and are avoided if possible.
Re: Please restore our registers when you’re done with them
#7Macros in a macro assembler .. not very nice.
Re: Please restore our registers when you’re done with them
#8One of the linked pull requests: https://github.com/cisco/openh264/commit/db956674bbdfbaab5ac... Macros in a macro assembler .. not very nice.
Re: Please restore our registers when you’re done with them
#9One of the linked pull requests: https://github.com/cisco/openh264/commit/db956674bbdfbaab5ac... Macros in a macro assembler .. not very nice.
He even mentions that it's Windows-specific, both in the commit message and in the article... and then seemingly fails to make it Windows-only? That's "not very nice" either.
Re: Please restore our registers when you’re done with them
#10One of the linked pull requests: https://github.com/cisco/openh264/commit/db956674bbdfbaab5ac... Macros in a macro assembler .. not very nice.
He even mentions that it's Windows-specific, both in the commit message and in the article... and then seemingly fails to make it Windows-only? That's "not very nice" either.
https://github.com/cisco/openh264/blob/db956674bbdfbaab5acdd...
https://github.com/cisco/openh264/blob/db956674bbdfbaab5acdd...