Repository navigation
Releases
cint 0.2.20
cint 0.2.20 lets the experimental executor cpu-qbe compile kernels. In 0.2.19 it refused every module that held one. Fault records, sites and fuel are those of cpu-c17.
Changes
cpu-qbecompiles kernels and their dispatches. A dispatch runs its work items one at a time, in the order ofcpu-c17, and each check in a kernel calls the runtime, so a fault reports the same dispatch number, phase and work item. An exported kernel of the root module whose parameters or view elements are not integers of 64 bits or fewer is still refused.- The 53 kernel cases of the suite that
cpu-qberefused leaveconformance/unsupported.txt. cint --versionreports 0.2.20.- SPEC-09P.7 replaces SPEC-09P.6. It changes 5.3, paragraph 8, and the
cpu-qbefigure of Annex A.
Known
cpu-c17writes an invalid C initializer for an exported kernel with a wideout, socint buildfails on such a program. This predates 0.2.20;cpu-qberefuses the same program.
The language, the cases of the suite, the C that cpu-c17 writes and every other public specification edition are unchanged. Existing limitations are listed in the 0.2.17 release notes. cint remains in development; 0.x releases make no stability promise.
Source
Download the source archive below or check out v0.2.20. Build instructions are in the repository README. No prebuilt compiler binaries are included.
Verification
On Linux x86-64 with GCC 13.3, all 47 repository check groups pass. A fresh export builds from its bootstrap and passes the runtime, bridge, command-line, Python package and example checks. In a separate run on Linux x86-64 with GCC 13.3 and QBE 1.3, cpu-qbe compiles 743 programs. All 1,868,144 compared records agree with the reference, including 205 expected compile-time refusals. cpu-c17 agrees on all 1,868,004 runtime records.
cint 0.2.19
cint 0.2.19 changes how the experimental executor cpu-qbe emits checks. In ordinary functions, the code it emits tests most checks itself and calls the runtime only when a test fails. Fault records, sites and fuel are unchanged.
Changes
cpu-qbetests the checks of+,-,*, negation, shifts, integer conversions, indexes and shapes inline, in a function that is not a kernel and calls neither a kernel nor an external function. An index proved in bounds is not tested.cintpasses-obefore the input file when it runs QBE, so QBE builds with a strict POSIXgetoptaccept the command.cint --versionreports 0.2.19.- SPEC-09P.6 replaces SPEC-09P.5. It changes 5.3, paragraph 8, the
cpu-qbefigure of Annex A, and the list of compiler modules in 5.6.
The language, the runtime and every other public specification edition are unchanged. Existing limitations are listed in the 0.2.17 release notes. cint remains in development; 0.x releases make no stability promise.
Source
Download the source archive below or check out v0.2.19. Build instructions are in the repository README. No prebuilt compiler binaries are included.
Verification
Checked on Linux x86-64 with GCC 13.3: all 47 repository check groups pass. A fresh export builds from its bootstrap and passes the runtime, bridge, command-line, Python package and example checks. On a second Linux x86-64 machine with GCC 16.2.1 and QBE 1.3, cpu-qbe agrees with the reference on the 1,864,521 records of the 690 programs it compiles.
The C that cintc emits, the runtime and the conformance suite are those of 0.2.17, so the cpu-c17 and cpu-c17-spec agreement counts of 0.2.17 stand.
cint 0.2.18
cint 0.2.18 adds the x86-64 assembler and ELF linker source omitted from 0.2.17. The release includes toolchain/as/, link/ and their tests, making these tools available for builds from public source.
Changes
- Added assembler and linker source and tests.
- Updated
cint --versionto 0.2.18. - Corrected the read-only NumPy test for legacy DLPack producers.
The language, runtime and public specification editions are unchanged. Existing limitations are listed in the 0.2.17 release notes. cint remains in development; 0.x releases make no stability promise.
Source
Download the source archive below or check out v0.2.18. Build instructions are in the repository README. No prebuilt compiler binaries are included.
Verification
Checked on Linux x86-64 with GCC 13.3: all 47 repository check groups pass. A fresh export builds from its bootstrap and passes the runtime, bridge, command-line, Python package and example checks. The assembler passes its GNU as byte comparisons, refusal cases and input-size tests. The linker passes executable comparisons with GNU ld and reproduces its outputs when linked by itself.
The compiler source identity remains that of 0.2.17. No public specification edition or frozen conformance expectation changes.
cint 0.2.17
cint 0.2.17 is the last release of the 0.2 line. It follows 0.2.8 and takes in 0.2.9 to 0.2.16, which were not published on their own. 0.3.0 follows as an experimental pre-release; like every 0.x release, this one makes no stability promise.
This release adds four halving and rounding operations to the language, lets calls across modules take error unions and grants, adds the executor cpu-c17-spec, which runs some calls speculatively and gives every outcome of cpu-c17, and adds the experimental executor cpu-qbe, which builds a program through QBE with no C compiler. No expected output that an earlier release published for a conformance case changes.
Halving and rounding
When written with operators, averaging two samples, dividing by a power of two with rounding and scaling by a coefficient below one each need a wider intermediate or a sign correction. Four built-in functions give the exact result in the operand's own type:
I16 a = 3;
I16 b = 4;
"{hadd(a, b)} {rhadd(a, b)} {hadd(-a, -b)} {rhadd(-a, -b)}\n";
I16 x = -6;
"{rshr(x, 2)} {x >> 2}\n";
Q1.15 h = 0.5;
"{rmulh(h, 0.5)} {rmulh(Q1.15.raw(-32768), Q1.15.raw(-32768))!raw}\n";
3 4 -4 -3
-1 -2
0.25 32767
hadd rounds the average of two values down and rhadd rounds it up. rshr(a, k) divides by 2^k and rounds a half up, where >> rounds toward negative infinity. rmulh multiplies a 16-bit or 32-bit fixed-point value by a Q1.15 or Q1.31 coefficient, rounds a half up and saturates: -1.0 times -1.0 is the one product outside the range, and it gives the maximum value of the type. The four functions take integers and fixed point of 8 to 64 bits. Only rshr faults, with E_SHIFT, when the shift count is outside the type's width.
The reference, cintc and the interpreter run all four. cintc writes each as plain C with no runtime helper. It also writes +|, -| and as| on 8-bit to 32-bit values as a clamp of the exact result, a form that a C compiler can vectorize. SPEC-04P.5 7.2.5 specifies these operations.
Speculative calls
cint emit-c --backend cpu-c17-spec writes the C of cpu-c17 with a region at each call from checked code into the module's speculation set: the lean functions that make no host call, print, assertion, wide operation or fixed-point operation. A region saves the state that the callee can write, runs an unchecked twin of the callee that raises a flag where a checked operation would fault, and keeps the result when the flag is clear and the fuel is within the allowance. Otherwise the region restores the saved state and runs the checked call. The state, result, fault record, fuel and output match those of cpu-c17. When compiled with CINT_SPEC_FORCE_RERUN, every region restores and reruns, so a conformance run checks both paths. SPEC-09P.5 5.3 specifies the executor.
Building through QBE
The experimental executor cpu-qbe is selected by a toolchain file that names backend cpu-qbe, a QBE binary with its SHA-256 and source identity, a target (amd64_sysv or arm64_apple), an assembler and a linker. cint emit-qbe then writes QBE SSA in place of C, and cint run and cint build build the program through QBE, the assembler and the linker; no C compiler sees the emitted code. Every operation that can fault calls the runtime's entry point for it, so the fault record, the sites and the fuel match those of cpu-c17. cpu-qbe refuses every kernel and any other module it does not take with E_UNSUPPORTED cpu-qbe capability NAME, and nothing falls back to cpu-c17. SPEC-09P.5 5.3 specifies the executor.
Calls across modules
A call to a function of an imported module whose result is an error union of that module's error set takes catch, as an expression or a statement, and try inside a function whose result has the same error set. A function of an imported module may also take a Grants value. In an import, any segment before the last may be a keyword, so import kernel.sha256; names kernel/sha256.ci. cintc refuses an error-set type from another module as a parameter, result or field and refuses a combined error set of another module, emitting C9102 with a message that names the limit.
Tools
cint --versionprints the version, the compiler source identity and the runtime contract version;--jsongives one JSON object. From 0.2.9 on, the sources of each release carry its version, and receipts record it.- The cache of
cint run,buildandtestis--cache DIR, elseCINT_CACHE, else the platform's cache directory, and never the directory ofcint. cint emit-creads any module under--rootthat a named module imports and the command line leaves out.- On a program with an extern that no standard service serves,
cint runandcint teststop with exit status 4 and a message that names the extern. - The diagnostics C4012, C1050 and C3001 name the keyword or built-in name they found.
Runtime and emitted C
These changes alter no outcome. In a kernel sum whose checked where bounds show that the total cannot overflow, cintc writes each addition as a plain add. The runtime tests whether a signed value fits a narrower signed type with one comparison and no branch on the sign. The multiply and divide of I512 and I1024 take shorter paths for operands that fit in 128 bits or divisors that fit in 64 bits. This release publishes no timing of these changes.
One defect of the bridge is fixed: cint_build no longer writes past the first row of a program table that holds fewer than five words, a row that a compiler other than cintc can have. cintc builds are unchanged.
Measured on this release
The suite holds 966 conformance programs and 1,868,209 records, and the reference agrees with every frozen expectation. SPEC-09P.5 Annex A gives the detail.
cpu-c17, built bycintcwith GCC 13.3 at-O2on Linux x86-64, agrees with the reference on all 1,868,004 records it compiles: 761 programs, 0 disagreements. The other 205 records belong to programs thatcintcrefuses with C9102.cpu-c17-specgives the same counts, both as emitted and compiled withCINT_SPEC_FORCE_RERUN, where every region restores and reruns the checked call.cpu-qbe, with QBE 1.3 and GCC 16.2.1 at-O2on a second Linux x86-64 machine, agrees with the reference on all 1,864,316 records it compares: 690 programs, 0 disagreements. It refuses 71 of the 761 programs thatcpu-c17compiles withE_UNSUPPORTED.- 0.2.17 passes the 47 groups of the repository's test suite on Linux x86-64.
- The published tree builds from its bootstrap and passes its runtime tests, bridge tests, command tests, Python package build and examples, with GCC 13.3 on Linux x86-64.
Apart from cpu-qbe, these figures come from one configuration. No count is stated for the interpreter, for gpu-cuda, or for other compilers and levels.
Known issues
gpu-cudarefuses a kernel that callshadd,rhadd,rshrorrmulh, or that holds a fixed-point value.cpu-c17-spechas run only with GCC and Clang on Linux x86-64. It speculates at calls, not at kernel dispatches.cpu-qberefuses kernels,cint test, libraries, applications,--frame-arena,--width-reportand--receipt. It has run only on Linux x86-64 and macOS arm64.- The workbench,
cint replandcint debugrefuse a module that declares an extern or arequires(C4012). - On the Windows console, F1, F2 and F4 to F12 reach a program as nothing. Outside raw mode the console's own output code page applies, and in line mode a Ctrl+Z at the start of a read ends the input.
- A receipt records the grants given with
--grant, not the grants a run takes from its program, and it does not record the program arguments. cint testtakes--grantlines, but a test holds noGrantsvalue, so they grant no call.fsreads a file, writes a file in one step and reports a size; it does not list, create, remove or rename. Narrowing a grant set and services other thanfsandconsoleare not in this release.
Specifications
Three editions are published with this release: SPEC-04P.5 (the language), covering the halving and rounding operations and keyword segments of an import; SPEC-06P.4 (the tools), covering cint --version, the cache location, cint emit-c --backend and cint emit-qbe; and SPEC-09P.5 (the toolchain), covering cpu-c17-spec, cpu-qbe and the refusal list of 0.2.17. The other documents keep the editions in force at 0.2.8.
Assets
cint-v0.2.17-conformance-tables.tar.gzholds the generated conformance tables. Unpack it at the repository root.SHA256SUMSlists the SHA-256 of each asset.
The code and the specifications are under the Apache License 2.0 with LLVM Exceptions.
cint 0.2.8
cint 0.2.8 takes the context out of calls between small functions of one module, writes conversions and shifts that cannot fault without a checked helper, and lets a constant expression size a module-level array. It follows 0.2.4 and takes in 0.2.5, 0.2.6 and 0.2.7, which were not published on their own. Like every 0.x release, it makes no stability promise. These changes to the emitted C change no outcome: every result, fault record, fuel count and digest is the one 0.2.4 gives. No expected output that 0.2.0 published for a conformance case changes.
Lean calls
In 0.2.4, each call wrote its site and depth into the context, and the fuel count went to the context and back. The C compiler must assume that a store through the context pointer can change any value reached through a pointer, so it reloaded such values after every call, and a small callee that still carried these stores was not worth inlining.
Now a call between two functions of a module's lean set writes to the context only on a fault. A lean function is not an entry, an export or a kernel, and it has no error union, frame arena or scratch arena. It makes no host call, dispatch or fixed-point operation and calls only lean functions of its own module. A lean function that charges fuel, calls or prints takes the fuel count as a parameter and returns the new count, and one that calls also takes the remaining depth. The depth check and the fuel charge run in the same order as before. When a lean call faults, each lean caller adds its own site to the record on the way out, so the record's stack field is byte for byte the one 0.2.4 writes.
In the builtin helper mode, the default on GCC and Clang, each per-operation helper and each lean function that is not recursive and is within the emitter's size bound are marked CINT_RT_FOLD, which asks the C compiler to inline them.
Plain conversions and shifts
A widening as, such as I32 to I64, and a right shift by a constant count in range cannot fault on any value. cintc now writes a widening as and an unsigned right shift as plain C, and a signed right shift as the runtime's arithmetic shift, cint_rt_asr, since C17 leaves >> of a negative value implementation-defined. None of them calls a checked helper or reads the context. <<, narrowing as, signed-to-unsigned as and shifts by a variable count keep their checked helpers. Every conversion and shift inside a kernel or a function that makes a host call or a dispatch also keeps its helper.
Constant extents
The extent of a module-level array may be any I64 constant expression at every rank, and the constant may be declared after the array:
I64[SLOTS * WORDS + 1] room;
const I64 SLOTS = 4;
const I64 WORDS = 5;
cintc emits the same bytes for an extent written as a constant as for the same extent written as a literal. An extent that is not valid gets the reference's diagnostic instead of C9102: C2001 when it is not I64, C6004 when it is not constant and C2015 when it is negative.
Runtime
rt/cint_rt_lean.h defines lean forms of the checked add, subtract, multiply and negate for I8 to I64 and U8 to U64, for callers where no fault can be pending. Each makes one overflow test without reading the fault flag first and, on overflow, branches to a cold writer that writes the same record as the full form. cintc emits calls to the full forms. The runtime header digest in a receipt now covers this file, so every receipt identity changes from this release on.
Refused
cintc still refuses with C9102 several forms on the wide types (I128 to I1024 and U128 to U512), as well as an export or extern whose parameters or result have a wide or fixed-point type. It refuses catch on a call of a function of an imported module. gpu-cuda refuses a kernel that holds a fixed-point value or uses as|. A module-level array sized by a name or an expression is no longer refused. SPEC-09P.4 clause 12 lists each refusal.
Measured on this release
The suite holds 942 conformance programs and 1,868,185 records, and the reference agrees with every frozen expectation. The comparison of cintc and the interpreter with the reference over the whole suite was not repeated for 0.2.8, so this release states no agreement count for them. SPEC-09P.4 Annex A gives the detail.
- 0.2.8 passes the 46 groups of the repository's test suite on Linux x86-64.
- The published tree builds from its bootstrap and passes its runtime tests, bridge tests, command tests, Python package build and examples, with GCC 13.3 on Linux x86-64.
- Two public benchmarks, timed with
tools/cint_bench.pyat-O2with GCC 13.3 on one Linux x86-64 machine pinned to one CPU, show no change from 0.2.4:orbit_1e8with built-in helpers took a median of 11.18 s on 0.2.4 and 11.29 s on 0.2.8, andcompiler_s2,cintctranslating its own source, took 3.09 s and 3.11 s, 11 rounds each. Neither program spends its time in calls between small functions of one module: the orbit loop calls no function, and most calls of the compiler cross modules, which stay heavy. This release publishes no benchmark that shows the gain.
Known issues
- A call of a function in another module is never lean, and neither is its caller, so a program whose hot calls cross modules gains less.
- Forced inlining makes a program with many small functions build a larger executable and compile more slowly.
- The workbench,
cint replandcint debugrefuse a module that declares an extern or arequires(C4012). - On the Windows console, F1, F2 and F4 to F12 reach a program as nothing. Outside raw mode the console's own output code page applies, and in line mode a Ctrl+Z at the start of a read ends the input.
- A receipt records the grants given with
--grant, not the grants a run takes from its program, and it does not record the program arguments. cint testtakes--grantlines, but a test holds noGrantsvalue, so they grant no call.fsreads a file, writes a file in one step and reports a size; it does not list, create, remove or rename. Narrowing a grant set and services other thanfsandconsoleare not in this release.
Specifications
One edition is published with this release: SPEC-09P.4 (the toolchain). It specifies the lean call and the conversions and shifts written without a checked helper, and its refusal list no longer holds the extent of a module-level array. SPEC-03P.3, SPEC-04P.4, SPEC-06P.3 and GLOSSARY-P.4 of 0.2.4 stay in force, as do SPEC-01P.3 and SPEC-02P.2. The other documents keep their 0.2.0 editions.
Assets
cint-v0.2.8-conformance-tables.tar.gzholds the generated tables. Unpack it at the repository root.SHA256SUMSlists the SHA-256 of each asset.
The code and the specifications are under the Apache License 2.0 with LLVM Exceptions.
cint 0.2.4
cint 0.2.4 starts a repeated run of a program without building it again, lets a program carry the grants it needs, and adds byte strings, a comparison of two arrays and a catch statement for calls that return no value. It follows 0.2.3 and, like every 0.x release, makes no stability promise. No expected output that 0.2.0 published for a conformance case changes.
Added
cint runkeeps the executable it built, and a later run of the same program starts that executable without building it again. The program is the same whencint, the toolchain file, the runtime and every module file the run read are the same.cint run --rebuildbuilds anyway and replaces the kept executable. A run that writes a receipt or a width report always builds, so its receipt does not depend on the kept one.- A program can carry its grants. When
cint runor an executable thatcint buildwrote is given no--grantline, it grants what the program declares withrequires. This covers a capability with no path root, such asconsole.input, and a file capability on/argK./argKbacks the directory of the path given as program argument K, as incint run notes.ci -- notes/today.txt. One--grantline turns this off, and the lines given are then the whole grant set. - A byte-string literal,
b"abc", is a read-only view of the bytes of its text, with\xHHfor any byte from 00 to FF and no holes. equal(a, b)is true when two arrays or views of the same element type and rank have the same extents and equal elements.cint explainknows it.- A call whose result is
E!voidcan be handled in place with acatchstatement:log(x) catch (e) { ... };. Its block may complete, unlike the block of acatchexpression. cint build --appwrites an executable that takes every word after its name as a program argument, in order, sonotes notes.txtgivesmainthe wordnotes.txtand the executable needs no launcher that writes--before it. The executable takes its grants from its manifest.cint run --frame-arena Nandcint build --frame-arena Nset the capacity of the frame arena, in elements.- A run receipt names the grants given with
--grantand says whether standard input was the null device.cint explain --stdlib DIRreads the standard library fromDIR.
Fixed
cintcno longer refuses with C9102 an element of a module-level array of rank 2 to 4 that a function reads only inside a hole of a print string.cintfindscint.toolchainandlib/beside the real executable when it is started through a symbolic link.- On Windows, a program that reads the console in raw mode changes in four ways. A window resize no longer holds up a timed
readpast its wait. Ctrl+Z, Ctrl+Y and Ctrl+C arrive as the bytes 0x1A, 0x19 and 0x03 instead of ending the input. The arrows, Home, End, Page Up, Page Down, Insert, Delete and F3 arrive as the sequences an xterm sends, with Shift, Alt and Ctrl as modifiers. In raw mode, input and output are UTF-8.
Refused
cintc still refuses with C9102 several forms on the wide types, and an export or extern whose parameters or result have a wide or fixed-point type. It refuses catch on a call of a function of an imported module, in an expression and as a statement. gpu-cuda refuses a kernel that holds a fixed-point value or uses as|. SPEC-09P.3 clause 12 lists each refusal.
Measured on this release
The suite holds 935 conformance programs and 1,868,178 records, and the reference agrees with every frozen expectation. The comparison of cintc and the interpreter with the reference was not repeated for 0.2.4, so this release states no agreement count for them; the counts of 0.2.3 were measured on the 0.2.2 sources. SPEC-09P.3 Annex A gives the detail.
- 0.2.4 passes the 46 groups of the repository's test suite on Linux with and without sanitizers, and on Windows.
- The published tree builds from its bootstrap and passes its runtime tests, bridge tests, command tests, Python package build and examples, with GCC 13.3 on Linux x86-64 and with MSVC 19.44 on Windows x86-64.
Known issues
- The workbench,
cint replandcint debugrefuse a module that declares an extern or arequires(C4012). - These limits apply only to the Windows console, not to the language or the other platforms. F1, F2 and F4 to F12 reach a program as nothing. Outside raw mode the console's own output code page applies, so UTF-8 text shows wrongly in code page 437. In line mode a Ctrl+Z at the start of a read ends the input, as in other Windows console programs. The console changes were checked with simulated key queues and in a pseudo console (arrows, Home, End, Ctrl+arrows, Delete, Page Up and Down, Ctrl+Z, Ctrl+Y, Ctrl+C, a resize, accented and emoji characters and UTF-8 output), and on a real console in Windows Terminal for Ctrl+Z only. Insert, F3 and the Shift and Alt modifiers use the same code but were not among the keys checked.
- A receipt records the grants given with
--grant, not the grants a run takes from its program, and it does not record the program arguments. cint testtakes--grantlines, but a test holds noGrantsvalue, so they grant no call.fsreads a file, writes a file in one step and reports a size; it does not list, create, remove or rename. Narrowing a grant set and services other thanfsandconsoleare not in this release.
Specifications
Five editions are published with this release: SPEC-03P.3 (the host interface), SPEC-04P.4 (the language, with byte strings, equal, the catch statement and the grants of a run), SPEC-06P.3 (the tools, with the kept executable, --rebuild, --frame-arena and --app), SPEC-09P.3 (the toolchain) and GLOSSARY-P.4. SPEC-01P.3 and SPEC-02P.2 stay in force. The other documents keep their 0.2.0 editions.
Assets
cint-v0.2.4-conformance-tables.tar.gzholds the generated tables. Unpack it at the repository root.SHA256SUMSlists the SHA-256 of each asset.
The code and the specifications are under the Apache License 2.0 with LLVM Exceptions.
cint 0.2.3
cint 0.2.3 adds the standard services fs and console, through which a program reads and writes files and the terminal, and extern declarations, through which cint code calls functions of the C or C++ program that hosts it. It is the first public release after 0.2.0 and takes in 0.2.1 and 0.2.2, which were not published on their own; 0.2.3 is 0.2.2 with one fix. Like 0.2.0, it is experimental: a 0.x release makes no stability promise. No expected output that 0.2.0 published for a conformance case changes.
Added
- The standard library has two services for input and output:
fs, which reads a file, writes a file in one step and reports its size, andconsole, which writes to the terminal, reads lines or bytes, reports the window size and switches raw mode. A program imports them withimport fs;andimport console;. A call works only under a grant that the person running the program gives, such ascint run --grant fs.read:/data=data, and a call that no grant covers returns the errordeniedand changes nothing.mainreceives the grant set as a parameter of typeGrants. maincan take the words given after--, as incint run words.ci -- alpha b c, as one read-only view of bytes:void main(in U8[_] args). An executable thatcint buildwrites takes them the same way.- An
externdeclaration names a function that the host supplies, with its effect class:extern observe I64 clock_ns();. A host program passes its functions when it creates a context, and the creation fails when a function's effect class or signature differs from the declaration. A recording keeps what eachobservecall returned, so a replay can give the same run without calling the host again. - For C and C++ hosts,
cint build --libwrites a header beside the library that declares its exports, and the header compiles as C17, C++17 and C++20. Two builds of a library from the same sources with the same compiler give the same bytes.cint_site_resolveturns the site of a fault into a file, line, column and operation. The C interface is version 3.4. cintccompiles fixed-point types, which 0.2.0 refused, and their storage may now be 128 bits in the reference,cintcand the interpreter. The records of the 47 fixed-point conformance cases that 0.2.0 left unsupported are now compared with the reference.- The reference,
cintcand the interpreter implement the saturating conversionas|and the result forms of fixed-point operations. - A module-level array may hold up to 65,536 elements of any element type.
cint run --width-report PATHwrites a width report that lists, for each wide operation in the program, the most bits its values used and the narrowest type that would have held them.- A fault with no destination for its record prints one line on standard error.
- The workbench times builds, replays and comparisons on a monotonic clock.
Fixed
- The C that
cintcwrites for a function that uses a field or an element of a struct as a place no longer reads through a null pointer when the function starts. Clang's UndefinedBehaviorSanitizer reported the read; GCC and Clang without the sanitizer did not.
Faster
cintitself is built with the release compiler flags.- The runtime's wide arithmetic takes shorter paths when the operands are small. It has helpers for two and four limbs and short paths for products and quotients of small wide operands, rotates on the inline builtin path, and on x86-64 under GCC and Clang divides with the hardware instruction that takes a 128-bit dividend.
Refused
cintc still refuses with C9102 several forms on the wide types, and an export or extern whose parameters or result have a wide or fixed-point type. gpu-cuda refuses a kernel that holds a fixed-point value or uses as|. SPEC-09P.2 clause 12 lists each refusal.
Measured on this release
The counts were measured on the 0.2.2 sources and hold for 0.2.3, which changes one line of the C that cintc writes. SPEC-09P.2 Annex A gives the detail.
cpu-c17:cintccompiles 732 conformance programs, compares 1,867,975 of their records with the reference with no disagreement and refuses the other 191. The counts are the same with GCC 16.2.1, Clang 23.1.3, MSVC 19.44 and Apple Clang 21, each without optimization in portable mode and with optimization in builtin mode.cpu-sir-interp: the interpreter compares 1,868,166 records with no disagreement.- 0.2.3 passes the repository's test suite on Linux, with and without sanitizers, and on Windows. Under Clang's sanitizers, the 552 checks of the golden test suite of
cintcpass with no finding. The published tree builds from its bootstrap and passes its runtime tests and examples.
Known issues
- The workbench,
cint replandcint debugrefuse a module that declares an extern or arequires(C4012). - A receipt records neither the grants of a run nor its program arguments.
cint testtakes--grantlines, but a test holds noGrantsvalue, so they grant no call.cintcrefuses with C9102 an element of a module-level array of rank 2 to 4 that a function reads only inside a hole of a print string, as in"{grid[i][j]}\n";.fsreads a file, writes a file in one step and reports a size; it does not list, create, remove or rename. Narrowing a grant set, and services other thanfsandconsole, are not in this release.
Specifications
Seven editions state what the reference runs (they were written for 0.2.2, and 0.2.3 changes no rule in them): SPEC-01P.3 (encodings), SPEC-02P.2 (kernels), SPEC-03P.2 (the host interface, with host functions and services), SPEC-04P.3 (the language, with extern, services and grants), SPEC-06P.2 (the tools, with --grant), SPEC-09P.2 (the toolchain) and GLOSSARY-P.3. The other documents keep their 0.2.0 editions.
Assets
cint-v0.2.3-conformance-tables.tar.gzholds the generated tables. Unpack it at the repository root.SHA256SUMSlists the SHA-256 of each asset.
The code and the specifications are under the Apache License 2.0 with LLVM Exceptions.
cint 0.2.0
cint 0.2.0 adds debugging tools. It is experimental, as v0.1 was: 0.x makes no stability promise, and a 0.2.n patch changes no published expectation file.
Added
cint debugreplays a run, locates a fault and compares two builds of one program.cint explain,cint workbenchandcint replwork beside it.tools/cint_tools.pybuilds these four tools andcint interp. A fault report names the operation, its exact operands and the source position.cint interpis the SIR interpreter. It takes checkpoints, records runs and replays them.cintccompiles the integer types fromI128toI1024and fromU128toU512, andmul_full.- The reference and the interpreter run fixed point.
- Nine specification editions state what the 0.2.0 reference runs. SPEC-04P.2, the cint language, holds the whole language in one document.
Refused
cintc refuses fixed point, struct array literals, arrays at a script's top level and several forms on the wide types with C9102. SPEC-09P.1 lists each one.
Measured on this release
On cpu-c17 and cpu-sir-interp, cintc runs 823 conformance cases (561 programs, 154 tables and 108 anchors) and agrees with the reference on all 1,868,066 records. 11 cases are held, 67 are not applicable and the 47 fixed-point cases are unsupported. All eight configurations pass under MSVC and under Apple Clang.
Seeded fuzzing found 0 failures in every decoder. The checkpoint, recording and density decoders took 3,000, 3,000 and 2,000 inputs under MSVC, GCC 16, Clang 22 and Apple Clang. The fault record, expectation file and Python fault record decoders took 20,000 inputs each.
Known issues
Under GCC 16.2.1 and Clang 22.1.8 on Fedora 44, 4 of the 32 configurations crashed in the conformance run: GCC -O2 with portable helpers on cpu-c17 and on cpu-sir-interp (exit status 1), GCC -O2 with portable helpers and sanitizers, and Clang -O0 with portable helpers (each a segmentation fault). The other 28 pass. The cause is not yet known.
The CUDA backend, gpu-cuda, is in the tree but does not pass conformance in this release. It refuses the 47 fixed-point cases, as cpu-c17 does, but conformance/unsupported.txt lists those refusals for cpu-c17 only, so each gpu-cuda run counts them as disagreements.
Removed
The tutorials under docs/tutorials/ are gone. The cint university course on integerc.dev replaces them.
Assets
cint-v0.2.0-conformance-tables.tar.gzholds the 154 generated tables. Unpack it at the repository root.cint-v0.2.0-receipts.tar.gzholds the conformance, kernel, workbench mode and decoder fuzz receipts of the release candidate. Its README names the receipts left out.SHA256SUMSlists the SHA-256 of each asset.
The code, the specifications and the receipts are under the Apache License 2.0 with LLVM Exceptions.
cint v0.1.1
Fixed
cintread at most 8 runtime source files from its toolchain file and left the rest out of a receipt's runtime identity without a word: 6 of the 14 runtime files,rt/cint_rt.camong them, were not covered. Every runtime source is now recorded, and a toolchain file with more than the command can hold is refused.- The Python bridge,
python/, is now included.examples/matmul_i8.py, tutorial 04 andtools/cint_python.pyneed it; v0.1.0 shipped them without it. - The tutorials no longer open with a broken image.
tools/cint_lint.pypasses on this tree, and two tests that need a file outside this repository skip and say why.
Removed
Tests and tools that check the build records against receipts, pins and build files that are not published: tools/cint_accept.py, tools/cint_stage.py, and seven test files listed in CHANGELOG.md. They could not pass in this repository.
Checked
In a clean environment, from this tree with the tables asset unpacked: every test file under tests/, ref/, conformance/tools/ and python/tests/, the runtime, bridge, seed, harness and cint command suites, the self-hosting fixpoint, the Python bridge receipt, and every example. The compiler is unchanged from v0.1.0 (source identity f30a4745d35ab40208f923d214b27b00ea24773785fec56e93fc6ffaaa78b3ed).
Assets
cint-v0.1.1-conformance-tables.tar.gz: the 126 generated integer-machine tables, unchanged from v0.1.0. Unpack at the repository root;conformance/integer-machine/MANIFEST.txtlists each file's SHA-256.SHA256SUMS.
Apache License 2.0 with LLVM Exceptions.
cint v0.1.0
cint v0.1.0
The first public release of cint, a C family language for deterministic, cross-platform programs. Every number is an integer and every operator is checked: a program writes the same bytes on every machine, and an operation that cannot give the exact answer stops with a fault record instead of a wrong one.
⚠️ Experimental. 0.x makes no stability promise. Expect breaking changes before 1.0.
What is in it
cintc, the compiler, written in cint and emitting C17. It compiles itself, and the self-built stages are byte-identical.- The seed compiler in C that builds
cintc, the runtime, and thecintcommand (run,build,test,emit-c). cint_ref, the reference interpreter, and the conformance suite of 861 cases.cintcagrees withcint_refon all 783 cases it is compared on.- Specification editions SPEC-00P.1, SPEC-01P.1 and SPEC-04P.1, with GLOSSARY-P.1 and REFERENCES-P.1, also at https://integerc.dev/specifications/.
- Tutorials and examples.
Try it
Python 3 and one C17 compiler (GCC, Clang, MSVC or Apple Clang):
python3 tools/cint_bootstrap.py --leg gcc
Or in a browser, with nothing to install: https://integerc.dev/examples/.
Assets
cint-v0.1.0-conformance-tables.tar.gz: the 126 generated integer-machine tables, at their repository paths. Unpack at the repository root;conformance/integer-machine/MANIFEST.txtlists each file's SHA-256. The generators inconformance/tools/rebuild them byte for byte.SHA256SUMS.
Compiler source identity: f30a4745d35ab40208f923d214b27b00ea24773785fec56e93fc6ffaaa78b3ed.
Known issues
See CHANGELOG.md and each component's OPEN.md.
Apache License 2.0 with LLVM Exceptions.

