Search code examples
prologwarren-abstract-machine

Show WAM code for a given Prolog program


Given a Prolog program, is there any GNU Prolog command to view the WAM code relative to that program?


Solution

  • 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.