add notes in lib.nas & add runtime.gc() & add total instruction count in '-o'.

This commit is contained in:
ValKmjolnir
2022-02-09 15:53:09 +08:00
parent ee01e0992c
commit 6908e509ac
6 changed files with 119 additions and 5 deletions
+1 -1
View File
@@ -436,7 +436,7 @@ void nasal_gc::info()
std::cout<<name[i]<<" | "<<count[i]<<"\n";
std::cout<<"\nmemory allocator info(max size):\n";
for(uint8_t i=vm_str;i<vm_type_size;++i)
std::cout<<name[i]<<" | "<<size[i]<<"\n";
std::cout<<name[i]<<" | "<<size[i]<<"(+"<<size[i]/increment[i]-1<<")\n";
}
nasal_ref nasal_gc::alloc(uint8_t type)
{