NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: x86_64 assembly Hello World



On Sun, Feb 11, 2024 at 10:39:36AM +0100, Fekete Zoltán wrote:
> Hi There!
> 
> I have played with GNU as and ld, and subsequently created a "Hello World!"
> program, which I could not find anywhere else so far.

There are examples (including  x86_64 and i386) installed in
/usr/share/examples/asm/hello

It is a bit controversial if this examples are good, the prefered way for
most assembly programs is to link against libc and get the NetBSD marker
note from the libc startup code (src/lib/csu/common/sysident.S).

Martin


Home | Main Index | Thread Index | Old Index