Frama-C API - Machine
This module handle the machine configuration. Previous Frama-C versions handled this in Cil.
State
val self : State.tInternal state of the machine.
val is_computed : ?project:Project.t -> unit -> boolWhether current project has set its machine description.
Names getters
Types
module type SizeofInfo = sig ... endsizeof getters
module Sizeof : SizeofInfo_Alignof and GCC __alignof__ getters
module type AlignofInfo = sig ... endmodule Alignof : AlignofInfomodule GCCAlignof : AlignofInfoTyp/kind getters
val ptrdiff_kind : unit -> Cil_types.ikindval ptrdiff_type : unit -> Cil_types.typval sizeof_kind : unit -> Cil_types.ikindval sizeof_type : unit -> Cil_types.typval wchar_kind : unit -> Cil_types.ikindval wchar_type : unit -> Cil_types.typval uintptr_kind : unit -> Cil_types.ikindval uintptr_type : unit -> Cil_types.typval string_literal_type : unit -> Cil_types.typExpansions getters
Other getters
val get_machdep : unit -> Machdep.machCompiler
whether we accept empty struct. Implied by msvcMode and gccMode, and can be forced by set_acceptEmptyCompinfo otherwise.
After a call to this function, empty compinfos are allowed by the kernel, this must be used as a configuration step equivalent to a machdep, except that it is not a user configuration.
Note that if the selected machdep is GCC or MSVC, this call has no effect as these modes already allow empty compinfos.
Initializer
val init : initLogicBuiltins:(unit -> unit) -> Machdep.mach -> unitCall this function to perform some initialization, and only after you have set msvcMode. initLogicBuiltins is the function to call to init logic builtins. The Machdep argument is a description of the hardware platform and of the compiler used.
Forward references
Unless your name is Cil_builtins, you should not call this.
