public class

PrimitiveSizes

extends Object
implements IPrimitiveSizes
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.units.code.asm.type.PrimitiveSizes

Class Overview

Standard implementation for the sizes of C primitives.

Summary

Fields
public static final PrimitiveSizes COMMON_PRIMITIVE_SIZES Typical primitives sizes on 32-bit arch.: char=1, short=2, int=4, long=4 (!), long-long=8, float=4, double=8, long-double=10.
public static final PrimitiveSizes COMMON_PRIMITIVE_SIZES64 Typical primitives sizes on 64-bit arch.: char=1, short=2, int=4, long=8 (!), long-long=8, float=4, double=8, long-double=10.
public static final PrimitiveSizes GCC_ARM
public static final PrimitiveSizes GCC_ARM64
public static final PrimitiveSizes GCC_MIPS
public static final PrimitiveSizes GCC_X86
public static final PrimitiveSizes GCC_X86_64
public static final PrimitiveSizes MSVC_ARM
public static final PrimitiveSizes MSVC_ARM64
public static final PrimitiveSizes MSVC_GENERIC
public static final PrimitiveSizes MSVC_X86
public static final PrimitiveSizes MSVC_X86_64
Public Constructors
PrimitiveSizes(int charSize, int shortSize, int intSize, int longSize, int longLongSize, int floatSize, int doubleSize, int longDoubleSize)
PrimitiveSizes(IPrimitiveSizes psizes)
Public Methods
boolean equals(Object obj)
int getCharSize()
static PrimitiveSizes getCommon(ProcessorType proctype, CompilerType comptype)
int getDoubleSize()
int getFloatSize()
int getIntSize()
int getLongDoubleSize()
int getLongLongSize()
int getLongSize()
int getShortSize()
int hashCode()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.pnfsoftware.jeb.core.units.code.asm.type.IPrimitiveSizes

Fields

public static final PrimitiveSizes COMMON_PRIMITIVE_SIZES

Typical primitives sizes on 32-bit arch.: char=1, short=2, int=4, long=4 (!), long-long=8, float=4, double=8, long-double=10. Better to use compiler+processor-specific statics.

public static final PrimitiveSizes COMMON_PRIMITIVE_SIZES64

Typical primitives sizes on 64-bit arch.: char=1, short=2, int=4, long=8 (!), long-long=8, float=4, double=8, long-double=10. Better to use compiler+processor-specific statics.

public static final PrimitiveSizes GCC_ARM

public static final PrimitiveSizes GCC_ARM64

public static final PrimitiveSizes GCC_MIPS

public static final PrimitiveSizes GCC_X86

public static final PrimitiveSizes GCC_X86_64

public static final PrimitiveSizes MSVC_ARM

public static final PrimitiveSizes MSVC_ARM64

public static final PrimitiveSizes MSVC_GENERIC

public static final PrimitiveSizes MSVC_X86

public static final PrimitiveSizes MSVC_X86_64

Public Constructors

public PrimitiveSizes (int charSize, int shortSize, int intSize, int longSize, int longLongSize, int floatSize, int doubleSize, int longDoubleSize)

public PrimitiveSizes (IPrimitiveSizes psizes)

Public Methods

public boolean equals (Object obj)

public int getCharSize ()

public static PrimitiveSizes getCommon (ProcessorType proctype, CompilerType comptype)

public int getDoubleSize ()

public int getFloatSize ()

public int getIntSize ()

public int getLongDoubleSize ()

public int getLongLongSize ()

public int getLongSize ()

public int getShortSize ()

public int hashCode ()

public String toString ()