ns mask
is0xffff_0000_0000
magic
is0x4e96_0000_0000
mask
is0x0000_ff00_0000
data mask
is0x0000_00ff_ffff
class mask
is0x0000_f000_0000
kClassDefault
is0x0000_0000_0000
kClassSupply
is0x0000_1000_0000
kClassDemand
is0x0000_2000_0000
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update && sudo apt-get upgrade | |
sudo apt-get install gcc g++ make gdb wget -y | |
wget https://go.microsoft.com/fwlink/?LinkID=760868 -Ovscode.deb | |
sudo dpkg -i vscode.deb | |
rm vscode.deb | |
code --install-extension PKief.material-icon-theme | |
code --install-extension ms-vscode.cpptools | |
code --install-extension Yukai.map-replace-js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// it's a simple mark-and-sweep algorithm | |
// binary layout: | |
// text, data and bss must be after `loadbase`, then comes the .heap section, then `stacksize` which must come after .heap | |
#define heapsize 0x10000 | |
#define loadbase 0x200000 | |
#define stacksize 0x4000 | |
OlderNewer