Ghidra Decompiler Analysis Engine
Public Member Functions | List of all members
LanguageDescription Class Reference

Contents of the <language> tag in a .ldefs file. More...

#include <sleigh_arch.hh>

Public Member Functions

void restoreXml (const Element *el)
 Read the XML tag from stream. More...
 
const CompilerTaggetCompiler (const string &nm) const
 Get compiler specification of the given name. More...
 

Detailed Description

Contents of the <language> tag in a .ldefs file.

This class contains meta-data describing a single processor and the set of files used to analyze it. Ghidra requires a compiled SLEIGH specification file (.sla), a processor specification file (.pspec), and a compiler specification file (.cspec) in order to support disassembly/decompilation of a processor. This class supports a single processor, as described by a single SLEIGH file and processor spec. Multiple compiler specifications can be given for the single processor.

Member Function Documentation

◆ getCompiler()

const CompilerTag & LanguageDescription::getCompiler ( const string &  nm) const

Get compiler specification of the given name.

Pick out the CompilerTag associated with the desired compiler id string

Parameters
nmis the desired id string
Returns
a reference to the matching CompilerTag

◆ restoreXml()

void LanguageDescription::restoreXml ( const Element el)

Read the XML tag from stream.

Parse an ldefs <language> tag

Parameters
elis the XML element

The documentation for this class was generated from the following files: