experimental optimizer for float ops

This commit is contained in:
David Anderson
2006-02-10 15:43:27 +00:00
parent b527efde41
commit dcaf3066bf
14 changed files with 474 additions and 59 deletions

View File

@@ -267,6 +267,28 @@ int AMXAPI dbg_LookupLine(AMX_DBG *amxdbg, ucell address, long *line)
return AMX_ERR_NONE;
}
void AMXAPI dbg_DumpFuncs(AMX_DBG *amxdbg, const char *file)
{
int index;
FILE *fp = fopen(file, "at");
if (!fp)
return;
for (index=0; index<amxdbg->hdr->symbols; index++)
{
if (amxdbg->symboltbl[index]->ident == iFUNCTN)
{
fprintf(fp, "[%s] --> (%d-%d)",
amxdbg->symboltbl[index]->name,
amxdbg->symboltbl[index]->codestart,
amxdbg->symboltbl[index]->codeend);
}
}
fclose(fp);
}
int AMXAPI dbg_LookupFunction(AMX_DBG *amxdbg, ucell address, const char **funcname)
{
/* dbg_LookupFunction() finds the function a code address is in. It can be