Show WAM code for a given Prolog program
Asked Answered
T

1

9

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

Todhunter answered 15/12, 2015 at 13:53 Comment(0)
M
6

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.

Metz answered 15/12, 2015 at 14:16 Comment(1)
Great! Thanks a lot.. (I don't know why my question was initially heavily downvoted..)Todhunter

© 2022 - 2024 — McMap. All rights reserved.