commit
887869d953
2 changed files with 5 additions and 2 deletions
|
|
@ -159,7 +159,7 @@ type
|
||||||
# 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,
|
||||||
cpuPowerpc64el, cpuSparc, cpuVm, cpuIa64, cpuAmd64, cpuMips, cpuMipsel,
|
cpuPowerpc64el, cpuSparc, cpuVm, cpuIa64, cpuAmd64, cpuMips, cpuMipsel,
|
||||||
cpuArm, cpuArm64, cpuJS, cpuNimrodVM, cpuAVR
|
cpuArm, cpuArm64, cpuJS, cpuNimrodVM, cpuAVR, cpuMSP430
|
||||||
|
|
||||||
type
|
type
|
||||||
TEndian* = enum
|
TEndian* = enum
|
||||||
|
|
@ -186,7 +186,8 @@ const
|
||||||
(name: "arm64", intSize: 64, endian: littleEndian, floatSize: 64, bit: 64),
|
(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),
|
||||||
|
(name: "msp430", intSize: 16, endian: littleEndian, floatSize: 32, bit: 16)]
|
||||||
|
|
||||||
var
|
var
|
||||||
targetCPU*, hostCPU*: TSystemCPU
|
targetCPU*, hostCPU*: TSystemCPU
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ type
|
||||||
arm64, ## ARM64 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
|
||||||
|
msp430 ## TI MSP430 microcontroller
|
||||||
|
|
||||||
OsPlatform* {.pure.} = enum ## the OS this program will run on.
|
OsPlatform* {.pure.} = enum ## the OS this program will run on.
|
||||||
none, dos, windows, os2, linux, morphos, skyos, solaris,
|
none, dos, windows, os2, linux, morphos, skyos, solaris,
|
||||||
|
|
@ -76,5 +77,6 @@ const
|
||||||
elif defined(arm64): CpuPlatform.arm64
|
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
|
||||||
|
elif defined(msp430): CpuPlatform.msp430
|
||||||
else: CpuPlatform.none
|
else: CpuPlatform.none
|
||||||
## the CPU this program will run on.
|
## the CPU this program will run on.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue