Skip to content

class Crystal::Codegen::Target
inherits Reference

Class methods

.new(target_triple : String)

View source

Methods

#==(other : self)

Returns true if this reference is the same as other. Invokes same?.

View source

#architecture : String

View source

#armhf?

View source

#bsd?

View source

#dragonfly?

View source

#environment : String

View source

#environment_parts

View source

#freebsd?

View source

#freebsd_version

View source

#gnu?

View source

#linux?

View source

#macos?

View source

#msvc?

View source

#musl?

View source

#netbsd?

View source

#openbsd?

View source

#os_name

View source

#pointer_bit_width

View source

#to_s(io : IO) : Nil

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>
View source

#to_target_machine(cpu = "", features = "", release = false, code_model = LLVM::CodeModel::Default) : LLVM::TargetMachine

View source

#unix?

View source

#vendor : String

View source

#win32?

View source

#windows?

View source