What is Yul and how to use it in Solidity
masterYul is an intermediate language used by the Solidity compiler. It can be used in stand-alone mode or as "inline assembly" within Solidity contracts. When using inline assembly, you wrap your Yul code in an assembly block. In this mode, variables are initialized on the stack.
To use Yul inside a Solidity function, use the assembly keyword.
contract C {
function f() public {
assembly {
// Yul code goes here
}
}
}