www.main.lv
Don't think just code it

2009-03-28 FreeBSD assembler hello world libc

Now our hello world becomes more portable becouse it uses standart libc library. You can use power of standart libraries. Also programms code become smaller
format ELF
section '.text' executable
extrn printf
public main
main:
        push msg
        call printf
        add  esp,4
        ret
section '.data' writeable
        msg db "Hello world!",0

There is small diference when compiling this file
fasm hellolibc.asm hellolibc.o
gcc -o hellolibc hellolibc.o