- Main Page
- Modules
- Data Structures
- Files

- Search for |

# Examples of using XED

The source code for the examples is in the "examples" subdirectory.

There is a makefile that will build all the examples on linux or windows.

There are several examples:

C++ examples:

- xed.cpp: a decoder, encoder, image file reader, etc.
- xed-ex1.cpp: a simple decoder that prints the decode data structure
- xed-ex2.cpp: a simple decoder with different disassmebly output formats
- xed-ex3.cpp: an encoder (subset of the xed command line tool). Documented with "xed" on the XED command interface page.

C examples:

- xed-ex4.c: a C version of the decoder example (xed-ex2).

The examples are described in the following subsections:

- Small Examples Small Examples
- Command line XED's command line testing tool
- Encode Example An example of using the encoder