DAML-LF code

How I can see DAML-LF? How it generated?

You can use daml damlc inspect to view the generated daml-lf code. Note though that the output of this command is not stable across SDK versions and you’re on your own wtr to how to interpret it so I don’t recommend to rely on any specific output here.

1 Like


This command is not providing any useful bytecode information

You used inspect-dar not inspect

Any reason why daml damlc inspect isn’t included in the help?

❯ daml damlc --help
damlc - Compiler and IDE backend for the Daml programming language
SDK Version: 2.9.5

Usage: damlc COMMAND

Invoke the Daml compiler. Use -h for help.

Available options:
-h,–help Show this help text

Available commands:
ide Start the Daml language server on standard
input/output.
multi-ide Start the Daml Multi-IDE language server on standard
input/output.
license License information for open-source projects included
in Daml.
package Compile the Daml program into a DAR (deprecated)
build Initialize, build and package the Daml project
test Test the current Daml project or the given files by
running all test declarations. Must be in Daml
project if --files is not set.
docs Early Access (Labs). Generate documentation for the
given Daml program.
inspect-dar Inspect a DAR archive
validate-dar Validate a DAR archive
doctest Early Access (Labs). doc tests
lint Lint the Daml program.
repl Launch the Daml REPL.