COFFI
1.2
               
architecture_provider Class Referenceabstract

Interface for architecture information. More...

+ Inheritance diagram for architecture_provider:

Public Member Functions

virtual coffi_architecture_t get_architecture () const =0
 Returns the coffi object architecture. More...
 
virtual int get_addressable_unit () const =0
 Returns the character type size in bytes. More...
 

Detailed Description

Interface for architecture information.

This interface is implemented by the coffi class.

Definition at line 1062 of file coffi_types.hpp.

Member Function Documentation

◆ get_addressable_unit()

virtual int get_addressable_unit ( ) const
pure virtual

Returns the character type size in bytes.

Auto-detects the addressable unit: are the addresses in bytes or 2-bytes words?
Some targets have 2-bytes characters, this changes how offsets are computed in the file.

Returns
1 in most cases (characters are 1 byte), 2 for some specific targets (TMS320 C2000 for example).

Implemented in coffi.

◆ get_architecture()

virtual coffi_architecture_t get_architecture ( ) const
pure virtual

Returns the coffi object architecture.

Returns
COFFI_ARCHITECTURE_NONE if the coffi object is not initialized, or in case of unrecognized architecture when loading a file.

Implemented in coffi.


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