Training
Module
Control variable scope and logic using code blocks in C# - Training
Use code blocks with more confidence, understanding how they impact the visibility and accessibility of both higher and lower-level constructs in your code.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Microsoft Specific
The presence of an __asm
block in a function affects optimization in several ways. First, the compiler doesn't try to optimize the __asm
block itself. What you write in assembly language is exactly what you get. Second, the presence of an __asm
block affects register variable storage. The compiler avoids enregistering variables across an __asm
block if the register's contents would be changed by the __asm
block. Finally, some other function-wide optimizations will be affected by the inclusion of assembly language in a function.
END Microsoft Specific
Training
Module
Control variable scope and logic using code blocks in C# - Training
Use code blocks with more confidence, understanding how they impact the visibility and accessibility of both higher and lower-level constructs in your code.
Documentation
Calling C Functions in Inline Assembly
Learn more about: Calling C Functions in Inline Assembly
Jumping to Labels in Inline Assembly
Learn more about: Jumping to Labels in Inline Assembly
Using and Preserving Registers in Inline Assembly
Learn more about: Using and Preserving Registers in Inline Assembly