View Single Post
Old 19 June 2020, 11:06   #82
Antiriad_UK
OCS forever!
 
Antiriad_UK's Avatar
 
Join Date: Mar 2019
Location: Birmingham, UK
Posts: 418
Quote:
Originally Posted by deimos View Post
This is how I do it:

The
"cc", "memory"
bit says that the assembly code will clobber the condition code register and memory, so disable any optimisations that depend on them. You can specify individual registers that get clobbered as well, which may allow for smarter optimisations.
If the function call trashes say d0-d7 does the compiler save/restore all the regsiters by default or do you have to specify that here to stay safe?
Antiriad_UK is offline  
 
Page generated in 0.04256 seconds with 11 queries