Merge pull request #3164 from def-/systems
Add powerpc64el and arm64 support
This commit is contained in:
commit
b423a9efeb
4 changed files with 11 additions and 5 deletions
|
|
@ -6,7 +6,7 @@ Name: "Nim"
|
||||||
Version: "$version"
|
Version: "$version"
|
||||||
Platforms: """
|
Platforms: """
|
||||||
windows: i386;amd64
|
windows: i386;amd64
|
||||||
linux: i386;amd64;powerpc64;arm;sparc;mips;mipsel;powerpc
|
linux: i386;amd64;powerpc64;arm;sparc;mips;mipsel;powerpc;powerpc64el;arm64;mipsel
|
||||||
macosx: i386;amd64;powerpc64
|
macosx: i386;amd64;powerpc64
|
||||||
solaris: i386;amd64;sparc
|
solaris: i386;amd64;sparc
|
||||||
freebsd: i386;amd64
|
freebsd: i386;amd64
|
||||||
|
|
|
||||||
|
|
@ -158,8 +158,8 @@ type
|
||||||
TSystemCPU* = enum # Also add CPU for in initialization section and
|
TSystemCPU* = enum # Also add CPU for in initialization section and
|
||||||
# alias conditionals to condsyms (end of module).
|
# alias conditionals to condsyms (end of module).
|
||||||
cpuNone, cpuI386, cpuM68k, cpuAlpha, cpuPowerpc, cpuPowerpc64,
|
cpuNone, cpuI386, cpuM68k, cpuAlpha, cpuPowerpc, cpuPowerpc64,
|
||||||
cpuSparc, cpuVm, cpuIa64, cpuAmd64, cpuMips, cpuMipsel, cpuArm,
|
cpuPowerpc64el, cpuSparc, cpuVm, cpuIa64, cpuAmd64, cpuMips, cpuMipsel,
|
||||||
cpuJS, cpuNimrodVM, cpuAVR
|
cpuArm, cpuArm64, cpuJS, cpuNimrodVM, cpuAVR
|
||||||
|
|
||||||
type
|
type
|
||||||
TEndian* = enum
|
TEndian* = enum
|
||||||
|
|
@ -175,6 +175,7 @@ const
|
||||||
(name: "alpha", intSize: 64, endian: littleEndian, floatSize: 64, bit: 64),
|
(name: "alpha", intSize: 64, endian: littleEndian, floatSize: 64, bit: 64),
|
||||||
(name: "powerpc", intSize: 32, endian: bigEndian, floatSize: 64, bit: 32),
|
(name: "powerpc", intSize: 32, endian: bigEndian, floatSize: 64, bit: 32),
|
||||||
(name: "powerpc64", intSize: 64, endian: bigEndian, floatSize: 64,bit: 64),
|
(name: "powerpc64", intSize: 64, endian: bigEndian, floatSize: 64,bit: 64),
|
||||||
|
(name: "powerpc64el", intSize: 64, endian: littleEndian, floatSize: 64,bit: 64),
|
||||||
(name: "sparc", intSize: 32, endian: bigEndian, floatSize: 64, bit: 32),
|
(name: "sparc", intSize: 32, endian: bigEndian, floatSize: 64, bit: 32),
|
||||||
(name: "vm", intSize: 32, endian: littleEndian, floatSize: 64, bit: 32),
|
(name: "vm", intSize: 32, endian: littleEndian, floatSize: 64, bit: 32),
|
||||||
(name: "ia64", intSize: 64, endian: littleEndian, floatSize: 64, bit: 64),
|
(name: "ia64", intSize: 64, endian: littleEndian, floatSize: 64, bit: 64),
|
||||||
|
|
@ -182,6 +183,7 @@ const
|
||||||
(name: "mips", intSize: 32, endian: bigEndian, floatSize: 64, bit: 32),
|
(name: "mips", intSize: 32, endian: bigEndian, floatSize: 64, bit: 32),
|
||||||
(name: "mipsel", intSize: 32, endian: littleEndian, floatSize: 64, bit: 32),
|
(name: "mipsel", intSize: 32, endian: littleEndian, floatSize: 64, bit: 32),
|
||||||
(name: "arm", intSize: 32, endian: littleEndian, floatSize: 64, bit: 32),
|
(name: "arm", intSize: 32, endian: littleEndian, floatSize: 64, bit: 32),
|
||||||
|
(name: "arm64", intSize: 64, endian: littleEndian, floatSize: 64, bit: 64),
|
||||||
(name: "js", intSize: 32, endian: bigEndian,floatSize: 64,bit: 32),
|
(name: "js", intSize: 32, endian: bigEndian,floatSize: 64,bit: 32),
|
||||||
(name: "nimrodvm", intSize: 32, endian: bigEndian, floatSize: 64, bit: 32),
|
(name: "nimrodvm", intSize: 32, endian: bigEndian, floatSize: 64, bit: 32),
|
||||||
(name: "avr", intSize: 16, endian: littleEndian, floatSize: 32, bit: 16)]
|
(name: "avr", intSize: 16, endian: littleEndian, floatSize: 32, bit: 16)]
|
||||||
|
|
|
||||||
|
|
@ -1150,8 +1150,8 @@ const
|
||||||
|
|
||||||
hostCPU* {.magic: "HostCPU".}: string = ""
|
hostCPU* {.magic: "HostCPU".}: string = ""
|
||||||
## a string that describes the host CPU. Possible values:
|
## a string that describes the host CPU. Possible values:
|
||||||
## "i386", "alpha", "powerpc", "powerpc64", "sparc", "amd64", "mips",
|
## "i386", "alpha", "powerpc", "powerpc64", "powerpc64el", "sparc",
|
||||||
## "mipsel", "arm".
|
## "amd64", "mips", "mipsel", "arm", "arm64".
|
||||||
|
|
||||||
seqShallowFlag = low(int)
|
seqShallowFlag = low(int)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,12 +18,14 @@ type
|
||||||
alpha, ## Alpha processor
|
alpha, ## Alpha processor
|
||||||
powerpc, ## 32 bit PowerPC
|
powerpc, ## 32 bit PowerPC
|
||||||
powerpc64, ## 64 bit PowerPC
|
powerpc64, ## 64 bit PowerPC
|
||||||
|
powerpc64el, ## Little Endian 64 bit PowerPC
|
||||||
sparc, ## Sparc based processor
|
sparc, ## Sparc based processor
|
||||||
ia64, ## Intel Itanium
|
ia64, ## Intel Itanium
|
||||||
amd64, ## x86_64 (AMD64); 64 bit x86 compatible CPU
|
amd64, ## x86_64 (AMD64); 64 bit x86 compatible CPU
|
||||||
mips, ## Mips based processor
|
mips, ## Mips based processor
|
||||||
mipsel, ## Little Endian Mips based processor
|
mipsel, ## Little Endian Mips based processor
|
||||||
arm, ## ARM based processor
|
arm, ## ARM based processor
|
||||||
|
arm64, ## ARM64 based processor
|
||||||
vm, ## Some Virtual machine: Nim's VM or JavaScript
|
vm, ## Some Virtual machine: Nim's VM or JavaScript
|
||||||
avr ## AVR based processor
|
avr ## AVR based processor
|
||||||
|
|
||||||
|
|
@ -64,12 +66,14 @@ const
|
||||||
elif defined(alpha): CpuPlatform.alpha
|
elif defined(alpha): CpuPlatform.alpha
|
||||||
elif defined(powerpc): CpuPlatform.powerpc
|
elif defined(powerpc): CpuPlatform.powerpc
|
||||||
elif defined(powerpc64): CpuPlatform.powerpc64
|
elif defined(powerpc64): CpuPlatform.powerpc64
|
||||||
|
elif defined(powerpc64el): CpuPlatform.powerpc64el
|
||||||
elif defined(sparc): CpuPlatform.sparc
|
elif defined(sparc): CpuPlatform.sparc
|
||||||
elif defined(ia64): CpuPlatform.ia64
|
elif defined(ia64): CpuPlatform.ia64
|
||||||
elif defined(amd64): CpuPlatform.amd64
|
elif defined(amd64): CpuPlatform.amd64
|
||||||
elif defined(mips): CpuPlatform.mips
|
elif defined(mips): CpuPlatform.mips
|
||||||
elif defined(mipsel): CpuPlatform.mipsel
|
elif defined(mipsel): CpuPlatform.mipsel
|
||||||
elif defined(arm): CpuPlatform.arm
|
elif defined(arm): CpuPlatform.arm
|
||||||
|
elif defined(arm64): CpuPlatform.arm64
|
||||||
elif defined(vm): CpuPlatform.vm
|
elif defined(vm): CpuPlatform.vm
|
||||||
elif defined(avr): CpuPlatform.avr
|
elif defined(avr): CpuPlatform.avr
|
||||||
else: CpuPlatform.none
|
else: CpuPlatform.none
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue