Given a Prolog program, is there any GNU Prolog command to view the WAM code relative to that program?
Yes, you can stop the compiler after any stage ( WAM, mini-assembly, assembly, etc).
To stop after WAM code is produced, use flag -W
or -w
with gplc
.