vm使用了stack.go里面的对象Stack来作为虚拟机的堆栈。memory代表了虚拟机里面使用的内存对象。stack比较简单,就是用1024个big.Int的定长数组来作为堆栈的存储。构造 //stackisanobjectforbasicstackoperations.Itemspoppedtothestackare //expectedtobechangedandmodified.stackdoesnottakecareofaddingnewly //initialisedobjects. typeStackstruct{ data[]big.Int } funcnewstack(...

  hpIzJDM1V0wI   2023年11月02日   50   0   0 区块链区块链教程
关注 更多

空空如也 ~ ~

粉丝 更多

空空如也 ~ ~