Kingcom / armips

An assembler for various ARM and MIPS platforms. Builds available at http://buildbot.orphis.net/armips/
MIT License
363 stars 77 forks source link

Add pool info to stats output #174

Closed unknownbrackets closed 4 years ago

unknownbrackets commented 4 years ago

This also includes a small optimization to pool value allocation. No need to have an O(n) loop when we can have a typically O(1) lookup. Won't make much difference in small pools.

The pool stats look like this:

Total pool size: 632
Largest pool: 0x08071470, 36

Didn't include in the README since it's ARM only (and only when you use pools, so old ARM at that), and stats already takes up enough space there.

In a lot of cases, there can be duplicate pool values (for various reasons) This can be a helpful stat to review your space usage, just like area stats.

Note: this will cause some small conflicts with #173 because it includes some cleanup that did as well. Will rebase either one merged first.

-[Unknown]