-
-
Couldn't load subscription status.
- Fork 1.5k
Consts defined by the compiler
ReneSac edited this page Jul 16, 2015
·
4 revisions
The following three lists are compiled from: Nim/compiler/plataform.nim and Nim/compiler/extccomp.nim
One can use some name from them like:
when defined(Windows):
doSomething()DOSWindowsOS2LinuxMorphOSSkyOSSolarisIrixNetBSDFreeBSDOpenBSDAIXPalmOSQNXAmigaAtariNetwareMacOSMacOSXHaikuVxWorksJSNimrodVMStandalone
i386m68kalphapowerpcpowerpc64sparcvmia64amd64mipsarmjsnimrodvmavr
-
vccMicrosoft's Visual C++ -
gccGnu C -
llvm_gccLLVM-GCC compiler -
iccIntel C++ compiler -
clangClang compiler -
bccBorland C Compiler -
dmcDigital Mars C Compiler -
wccWatcom C Compiler -
tccTiny C Compiler -
pccPelles C Compiler -
uccGeneric UNIX C compiler
Also remember about how to access the compiler options:
when compileOption("boundChecks"): # d:release should disable this.
if i > q.high: # x < q.low is taken care by the Natural parameter
raise newException(IndexError, "Bla has less than " & $(i+1) & " elements.")
discardTODO: List them here and how to correctly access the more complex ones.
Intro
Getting Started
- Install
- Docs
- Curated Packages
- Editor Support
- Unofficial FAQ
- Nim for C programmers
- Nim for Python programmers
- Nim for TypeScript programmers
- Nim for D programmers
- Nim for Java programmers
- Nim for Haskell programmers
Developing
- Build
- Contribute
- Creating a release
- Compiler module reference
- Consts defined by the compiler
- Debugging the compiler
- GitHub Actions/Travis CI/Circle CI/Appveyor
- GitLab CI setup
- Standard library and the JavaScript backend
Misc