cosmopolitan/examples
Justine Tunney edd9297eba Support malloc() on bare metal
Your Actually Portable Executables now contains a simple virtual memory
that works similarly to the Linux Kernel in the sense that it maps your
physical memory to negative addresses. This is needed to support mmap()
and malloc(). This functionality has zero code size impact. For example
the MODE=tiny LIFE.COM executable is still only 12KB in size.

The APE bootloader code has also been simplified to improve readibility
and further elevate the elegance by which we're able to support so many
platforms thereby enhancing verifiability so that we may engender trust
in this bootloading process.
2021-02-24 00:53:24 -08:00
..
package Get codebase completely working with LLVM 2021-02-09 02:57:32 -08:00
auto-launch-gdb-on-crash.c Make improvements 2020-12-01 03:43:40 -08:00
breakpoint.c Initial import 2020-06-15 07:18:57 -07:00
cp.c Delete LIBC_CALLS_HEFTY 2021-02-02 22:17:53 -08:00
cplusplus.cc Get codebase completely working with LLVM 2021-02-09 02:57:32 -08:00
crashreport.c Make C memory safe like Rust 2021-02-01 03:58:46 -08:00
ctrlc.c Work towards improving signals and processes 2021-01-27 19:34:02 -08:00
curl.c Make minor corrections to curl example 2021-02-18 20:17:07 -08:00
date.c Initial import 2020-06-15 07:18:57 -07:00
dinlerp.c Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
e820.c Support malloc() on bare metal 2021-02-24 00:53:24 -08:00
echo.c Fix XNU / FreeBSD / OpenBSD / RHEL5 / NT bugs 2021-01-25 18:31:17 -08:00
examples.mk Support malloc() on bare metal 2021-02-24 00:53:24 -08:00
exec.c Fix XNU / FreeBSD / OpenBSD / RHEL5 / NT bugs 2021-01-25 18:31:17 -08:00
findprime.c Fold conv package into fmt 2020-12-09 16:52:00 -08:00
fork.c Fix XNU / FreeBSD / OpenBSD / RHEL5 / NT bugs 2021-01-25 18:31:17 -08:00
forkrand.c Make improvements 2020-12-01 03:43:40 -08:00
generalized-automatic-datastructure-printing.c Initial import 2020-06-15 07:18:57 -07:00
gui.c Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
hangman.c Add epoll and do more release readiness changes 2020-11-28 12:01:51 -08:00
hello.c Get fork() working on Windows 2020-11-13 03:14:39 -08:00
hello.js Initial import 2020-06-15 07:18:57 -07:00
hello2.c Trim down executable sizes 2021-02-11 08:37:18 -08:00
hello3.c Initial import 2020-06-15 07:18:57 -07:00
hello4.c Initial import 2020-06-15 07:18:57 -07:00
hellojs.c Fix JavaScript interpreter example 2021-02-11 23:18:39 -08:00
hostname.c Fix XNU / FreeBSD / OpenBSD / RHEL5 / NT bugs 2021-01-25 18:31:17 -08:00
invtsc.c Add chibicc 2020-12-06 16:20:21 -08:00
ispell.c Fold conv package into fmt 2020-12-09 16:52:00 -08:00
kilo.c Improve dead code elimination 2021-02-08 04:04:42 -08:00
life.c Initial import 2020-06-15 07:18:57 -07:00
ls.c Make improvements 2020-09-14 00:02:34 -07:00
lstime.c Improve documentation 2020-12-27 07:02:35 -08:00
malloc.c Support malloc() on bare metal 2021-02-24 00:53:24 -08:00
mappy.c Get address sanitizer mostly working 2020-09-03 05:44:37 -07:00
nesemu1.cc Delete LIBC_CALLS_HEFTY 2021-02-02 22:17:53 -08:00
peek.c Change license 2020-12-27 17:18:44 -08:00
pipe.c Change license 2020-12-27 17:18:44 -08:00
poll.c Initial import 2020-06-15 07:18:57 -07:00
printargs.c Improve dead code elimination 2021-02-08 04:04:42 -08:00
printprimes.c Fold conv package into fmt 2020-12-09 16:52:00 -08:00
rawmode.c Initial import 2020-06-15 07:18:57 -07:00
rusage.c Fix XNU / FreeBSD / OpenBSD / RHEL5 / NT bugs 2021-01-25 18:31:17 -08:00
seq.c Fix sigsuspend() and sigprocmask() on OpenBSD 2021-02-05 12:19:43 -08:00
sleep.c Work towards improving signals and processes 2021-01-27 19:34:02 -08:00
spawn.c Fix XNU / FreeBSD / OpenBSD / RHEL5 / NT bugs 2021-01-25 18:31:17 -08:00
stat.c Fix metal bugs so deathstar.com runs in qemu (#20) 2021-01-16 17:52:15 -08:00
statsize.c Trim down executable sizes 2021-02-11 08:37:18 -08:00
system.c Fix XNU / FreeBSD / OpenBSD / RHEL5 / NT bugs 2021-01-25 18:31:17 -08:00
touch.c Improve build system 2021-02-19 23:03:34 -08:00
ttyinfo.c Make terminal ui binaries work well everywhere 2020-10-19 06:38:31 -07:00
uname.c Initial import 2020-06-15 07:18:57 -07:00
unbourne.c Work towards improving signals and processes 2021-01-27 19:34:02 -08:00
x86split.c Implement getcwd() for XNU 2021-01-30 08:54:12 -08:00