Live data from Hacker News

Tiniest x86-64-Linux emulator

github.com

1–10 of 27 posts

Re: Tiniest x86-64-Linux emulator

#5

That's beautifully worked. o//blink/blink What's the double slash for?

You can use it to configure the build mode: `build/bootstrap/make.com -j8 MODE=rel o/rel/blink/blink`; no MODE will build a default config. This is used across all cosmopolitan projects; for example, this is for redbean: https://redbean.dev/#source.

Re: Tiniest x86-64-Linux emulator

#8

That's beautifully worked. o//blink/blink What's the double slash for?

You can use it to configure the build mode: `build/bootstrap/make.com -j8 MODE=rel o/rel/blink/blink`; no MODE will build a default config. This is used across all cosmopolitan projects; for example, this is for redbean: https://redbean.dev/#source .

I'm not following. Is

    o//blink/blink
different from

    o/blink/blink

?

Re: Tiniest x86-64-Linux emulator

#9
They also made cosmopolitan libc [0] which outputs a single binary that runs on many platforms.

> The above command fixes GCC so it outputs portable binaries that will run on every Linux distro in addition to Mac OS X, Windows NT, FreeBSD, OpenBSD, and NetBSD too. Your program will also boot on bare metal too. In other words, you've written a normal textbook C program, and thanks to Cosmopolitan's low-level linker magic, you've effectively created your own operating system which happens to run on all the existing ones as well.

Brought up recently here: "Debugging C with Cosmopolitan Libc" [1]

And introduced here "Cosmopolitan Libc: build-once run-anywhere C library" [2]

[0] https://justine.lol/cosmopolitan/index.html

[1] https://news.ycombinator.com/item?id=33312012

[2] https://news.ycombinator.com/item?id=25556286

Post reply on HN