mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
21 lines
452 B
Plaintext
21 lines
452 B
Plaintext
|
object "main"
|
||
|
{
|
||
|
code {
|
||
|
datacopy(0, dataoffset("main"), datasize("main"))
|
||
|
datacopy(32, dataoffset("sub"), datasize("sub"))
|
||
|
sstore(0, mload(0))
|
||
|
sstore(1, mload(32))
|
||
|
}
|
||
|
object "sub" { code { sstore(0, 1) } }
|
||
|
}
|
||
|
// ----
|
||
|
// Trace:
|
||
|
// MSTORE_AT_SIZE(0, 2916)
|
||
|
// MSTORE_AT_SIZE(32, 265)
|
||
|
// MLOAD_FROM_SIZE(0, 32)
|
||
|
// SSTORE(0, 0)
|
||
|
// MLOAD_FROM_SIZE(32, 32)
|
||
|
// SSTORE(1, 0)
|
||
|
// Memory dump:
|
||
|
// Storage dump:
|