I’ve actually compiled this with the authors help on my rpi 1 with 256mb of ram and it runs surprisingly well.
However, it requires X so advanced mame is out unless you use overlay mode because of the lack of SDL hardware acceleration.
Mame4all-pi works fine in X though.
Retroarch mame 2003 (.70) should also run in X since it doesn’t use SDL I believe.