Using Glulx's malloc()/mfree() from Inform 6

Can someone please share a minimal code example of how to get the Inform 6 compiler to output the malloc/mfree opcodes from Glulx?

Bonus points for a demo of how to make a gestalt “query” from Inform 6 (to find out if malloc/mfree are even supported).

Zarf’s Glk and Glulx unit tests are often a good place to look for this sort of thing:


This is what I was looking for, thank you.