Understanding IBM Toolkit for Swift on z/OS

IBM® Toolkit for Swift on z/OS® ships with 6 core components.

Swift compiler
The Swift compiler (swiftc) is responsible for compiling Swift source code into executable machine code. The Swift compiler generates 64-bit executables using the XPLINK calling convention model. It also relies on the GOFF object format.
Core libraries
The Core libraries include the following 4 components:
Libc
A set of C Language Environment® (LE) routines exposed to Swift such as cos or malloc.
Foundation
A set of classes to complement the Swift standard library, including classes for Collections such as Sets or HashTables, File I/O, Units/Measurements, and more. Further details are available in the Foundation reference for Swift.
XCTest
A set of classes to create and run unit tests and performance tests.
libdispatch
A set of classes to execute code concurrently on multicore hardware by submitting work to dispatch queues managed by the system.
Swift standard library
The Swift standard library encompasses a number of basic data types such as Int or Double, collections such as Array or Dictionary, protocols and functions. It also consists of the Swift runtime environment which is responsible for the dynamic features of the compiler and memory management.
Swift Package Manager
Swift Package Manager is a tool for managing the distribution of Swift code. It is integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies.
zOSSwift
zOSSwift is an extra Swift library providing additional APIs and classes for the z/OS operating system.
Examples
The examples shipped with IBM Toolkit for Swift on z/OS are as follows:
  • REST API
  • JSON Parsing
  • IBM Kitura Web Server
  • Swift and Db2® integration
  • Swift to PL/I interlanguage calls
  • Swift to ASM (31-bit/24-bit) calls