Main Menu

Recent posts

#41
Tiko Programming Language / Re: New compiler
Last post by Patrice Terrier - November 27, 2026, 08:29:27 AM
Paul,

The new -Os works fine, I got exactly the same size than when calling directly GCC with it.
#42
Tiko Programming Language / Re: tiko 0.1.8 released (Nov 2...
Last post by Vortex - November 27, 2026, 06:26:03 AM
Hi Paul,

Many thanks to you and José. Great job.
#43
Tiko Programming Language / Re: Compiling resource scripts
Last post by Vortex - November 27, 2026, 05:05:21 AM
Hi Paul,

Thanks for the new release fixing the issue :

D:\tiko-lang>tiko DlgBox.bas Rsrc.rc -o DlgBox.exe -s gui

D:\tiko-lang>tiko --version
tiko 0.1.8
target windows-x86_64

The resource script :

#include <windows.h>
#include <commctrl.h>

1000 DIALOGEX DISCARDABLE 200, 200, 208, 96
STYLE WS_THICKFRAME | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_VISIBLE
CAPTION "LoadImageFromFile demo"
FONT 8, "MS Sans Serif", 0, 0, 1
BEGIN
END
#44
Tiko Programming Language / Re: tiko 0.1.8 released (Nov 2...
Last post by Johan Klassen - November 26, 2026, 04:43:08 PM
thank you  :)
#45
Tiko Programming Language / tiko 0.1.8 released (Nov 26, 2...
Last post by Paul Squires - November 26, 2026, 04:16:44 PM
Version 0.1.8 is out today for Windows, Linux (x86-64 and arm64) and macOS (Apple Silicon).

A Report Designer, barcodes, smaller executables, and Android (experimental)

The visual designer in tkEdit now does reports too. Design an invoice or a sales report on a band canvas, bind it to your data, preview it, and print it — on Windows, Linux and macOS.

The Form and Report Designer
tkEdit now designs reports as well as forms: draw the bands, drop fields from your data source, set grouping, totals and conditional styles, and preview the result with real or sample data; Test Report (Alt+F5) shows it in a window of its own. The new Barcode control is in the Form Designer's toolbox, and the code the designer generates uses tiko's fixed-width type names (int32, float64). The forms and reports you design run on Windows, Linux and macOS.


An invoice report in tkEdit's Report Designer (click for full size).

Build your first form with the step-by-step Contacts tutorial, then add data binding and designed reports with the Orders tutorial. The Form Designer page is the reference.

New in 0.1.8
  • Report Designer: design banded reports in tkEdit the way you design a form — a toolbox, a field list, an inspector, editors for data sources, parameters, grouping, conditional styles and expressions, a live preview with design data, and a New Report wizard. A report is bound to SQLite, a data grid, an array or your own code. See the Report Designer page.
  • tkBarcode: 1D and 2D barcodes — EAN and UPC, Code 128, Code 39, QR codes, Data Matrix, PDF417, Aztec and more, 20 in all — printed at their physical size and exported to PDF, PNG and SVG; in the Form Designer's toolbox and in report bands. See tkBarcode.
  • Smaller executables: -Os optimises for size and links a size-optimised runtime that the toolchain now ships; every Windows executable is smaller at any level. tkEdit itself went from 18.25 MB to 16.86 MB at -Os.
  • Android (experimental): the Windows toolchain builds for Android phones and the emulator — a console program, or a tkControls program as a signed APK. The -app options and how tkControls behaves under a finger may still change. Start with the Android Setup Tutorial.
  • Fixes: a .rc file builds without a Windows SDK installed, and byref on an array parameter is accepted.
Breaking changes: one, in tkEdit: Close Project and its shortcut Ctrl+Alt+W are gone; File > Close All now closes the project as well.

Get it
Learn more
#46
Tiko Programming Language / Re: Compiling resource scripts
Last post by Paul Squires - November 26, 2026, 08:48:02 AM
Good question. I thought the error was simply because the includes were enclosed in angle brackets rather than double quotes. Turns out there is more to it than that. tiko uses llvm-rc whereas FBC uses GoRC and FBC also passes path information to GoRC so that it can locate FBC's own include files. tiko is not passing the include path locations to llvm-rc so llvm-rc will then look on the machine for an installed SDK that may have the files. If not found, well, there's your error.

A second, more minor problem, the bundled fbc headers don't define LANG_ENGLISH or SUBLANG_ENGLISH_US, because GoRC knew those names itself. So pointing llvm-rc at them still fails, on the LANGUAGE line. That one is easy to fix.

I will fix both of these issues and have it in the next tiko release which should go out today.
 
#47
Tiko Programming Language / Re: Compiling resource scripts
Last post by Vortex - November 26, 2026, 07:02:05 AM
Hi Johan,

Thanks but #cinclude didn't work :

D:\tiko-lang>tiko -Wl /OPT:ICF DlgBox.bas Rsrc.rc -o DlgBox.exe
Rsrc.rc:1:2: error: invalid preprocessing directive
    1 | #cinclude <windows.h>
      |  ^
Rsrc.rc:2:2: error: invalid preprocessing directive
    2 | #cinclude <commctrl.h>
      |  ^
2 errors generated.
llvm-rc: Preprocessing failed.
tiko-lang: error TKO0110: compiling resource 'Rsrc.rc' failed (exit 1)
#48
Tiko Programming Language / Re: Compiling resource scripts
Last post by Johan Klassen - November 26, 2026, 06:50:48 AM
Hi Vortex
for *.h files use #cinclude
#49
Tiko Programming Language / Compiling resource scripts
Last post by Vortex - November 26, 2026, 05:32:35 AM
Hello,

How to compile resource scripts with the Tiko compiler?

My resource file rsrc.rc :

#include <windows.h>
#include <commctrl.h>

LANGUAGE LANG_ENGLISH,SUBLANG_ENGLISH_US

1000 DIALOGEX DISCARDABLE 200, 200, 208, 96
STYLE WS_THICKFRAME|WS_CAPTION|WS_SYSMENU|WS_MINIMIZEBOX|WS_MAXIMIZEBOX|WS_VISIBLE
CAPTION "LoadImageFromFile demo"
FONT 8, "MS Sans Serif", 0, 0, 1
{
}

D:\tiko-lang>tiko Test.bas Rsrc.rc -o Test.exe
Rsrc.rc:1:10: fatal error: 'windows.h' file not found
    1 | #include <windows.h>
      |          ^~~~~~~~~~~
1 error generated.
llvm-rc: Preprocessing failed.
tiko-lang: error TKO0110: compiling resource 'Rsrc.rc' failed (exit 1)
#50
Tiko Programming Language / Re: New compiler
Last post by Patrice Terrier - November 26, 2026, 04:57:40 AM
Paul,

7,168 bytes is already a very good result!

I was checking this statement on your front page:
"native binaries as fast and small as C"

That is why I made this test, with C as the challenger.
My VS C version of MINI is 5,632 bytes, so tiko is only three 512-byte steps behind (1.5 KB).
Close enough to C for me!

Thank you for implementing the size reductions so quickly!

BTW, my own DLLs (written in C: WinLIFT64, GDImage64, SHC) work like a charm with tiko. I only had to add an #inclib to SHC.bi, because my fbc batch passed SHC.lib on the ld command line.

Patrice