binary_size icon indicating copy to clipboard operation
binary_size copied to clipboard

Add V-lang binary

Open gslicer opened this issue 6 years ago • 1 comments

--> vlang.io (V on GitHub)

cat print('Hello World!') >> hello.v v --prod hello.v mv a.out hello_v

gslicer avatar Sep 24 '19 12:09 gslicer

Aleternatively:

fn syscall5(number int, arg1 int, arg2 string, arg3 u64, arg4 u64, arg5 voidptr) int

fn write(fd int, data string, nbytes u64) int {
	return syscall5(1, fd, data, nbytes, 0, 0)
}

fn main() {
	write(1, "Hello World!",12)

compile using -bare option, resulting binary shall by statically linked and less than 2KiB in size

gslicer avatar Nov 20 '19 13:11 gslicer