Sunday, March 23, 2025

Compiling helloworld.c C application using Zig

Compiling helloworld.c C application using Zig

Zig can be used to compile C source code. Below shows a very simple C source code, helloworld.c. Copy and save this to a file, say, in C:\hello-c\helloworld.c
To compile using Zig, do:
PS C:\hello-c> zig cc .\helloworld.c -o helloworld.exe

No comments:

SBCL Hello world

SBCL Hello, world! Version info: - OS: Windows 11 23H2 (Microsoft Windows [Version 10.0.22631.7079]) - Emacs: 30.2 - SBCL : 2.6.4 - SLI...