How can I open the .cxt file to read? How can I produce a .cxt file?
Thank you very much!
You can't read the contents of the .cxt (well, you can read it, but you probably can't understand it!). It's a binary file, which is an incremental snapshot of the SKILL virtual machine; in effect it's the compiled virtual machine code for the SKILL it contains.
As for creating them yourself, this is covered in the SKILL Language User Guide. Look at this in cdnshelp (or cdsdoc in older releases), or just open <ICinstDir>/doc/sklanguser/sklanguser.pdf and look at the chapter "Delivering Products" (chapter 10 in IC5141).
Is it possible to re-compile this .cxt file so that it can be both read and understood?
The simple answer is "no". It's possible that you might be able to use pp() to decompile a function in a context file if the context file was not created with write protection turned on (which results in read protection via pp for functions in context files as well), but in general the reason people create contexts is:
If you want to look at the source of a context file, you should ask the supplier of that context. Quite likely they don't want you to see the code though because it's their IP.