From 3e20038bbf7206e2270655418d7884ccfe91a4e4 Mon Sep 17 00:00:00 2001 From: hachem Date: Mon, 31 Aug 2026 00:19:10 +0200 Subject: add directives and directive based entry points --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 4a69904..4cf4444 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,8 @@ This is where hdass comes in. It's not quite high-level enough to be a C-like la ## Examples Here's a simple "Hello, World!" world program written using hdass' syntax: ```hdass +[entry: main] + const SYS_WRITE = 1 const SYS_EXIT = 60 @@ -60,7 +62,7 @@ From inside the container you can build the compiler and take a program all the premake5 gmake && make config=debug ./bin/debug-linux/hdass examples/hello_world.hdass -o hello.asm nasm -f elf64 hello.asm -o hello.o -ld hello.o -o hello +ld -e main hello.o -o hello ./hello ``` -- cgit v1.3