X86 Encoder Decoder
 All Files Groups Pages
Intel XED initialization

This section describes the base class used for initializing the encoder / decoder requests and the Intel XED library initialization function.

To use Intel XED, you must include "xed-interface.h"

#include "xed-interface.h"

If you are calling Intel XED from C++, you must wrap this include:

extern "C" {
#include "xed-interface.h"
}

Once, before using Intel XED, you must call #xed_tables_init() to initialize the tables Intel XED uses for encoding and decoding:

xed_tables_init();

Once initialized, Intel XED is reentrant (multithread safe). All values used for encoding and decoding live on the caller's stack or in the passed-in parameters.

If your program is multithreaded, initialize Intel XED once (and only once) using the above call before you attempt to decode or encode from any thread. Each thread does NOT need to initialize Intel XED. The idea is to initialize Intel XED before creating your threads.