mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-12 09:17:53 +00:00
- Emulator can now test the αcτµαlly pδrταblε εxεcµταblε bootloader - Whipped up a webserver named redbean. It services 150k requests per second on a single core. Bundling assets inside zip enables extremely fast serving for two reasons. The first is that zip central directory lookups go faster than stat() system calls. The second is that both zip and gzip content-encoding use DEFLATE, therefore, compressed responses can be served via the sendfile() system call which does an in-kernel copy directly from the zip executable structure. Also note that red bean zip executables can be deployed easily to all platforms, since these native executables work on Linux, Mac, BSD, and Windows. - Address sanitizer now works very well
31 lines
1.5 KiB
C
31 lines
1.5 KiB
C
#ifndef COSMOPOLITAN_TOOL_BUILD_LIB_MEMORY_H_
|
|
#define COSMOPOLITAN_TOOL_BUILD_LIB_MEMORY_H_
|
|
#include "tool/build/lib/machine.h"
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
COSMOPOLITAN_C_START_
|
|
|
|
int RegisterMemory(struct Machine *, int64_t, void *, size_t);
|
|
void *AccessRam(struct Machine *, int64_t, size_t, void *[2], uint8_t *, bool);
|
|
void *BeginLoadStore(struct Machine *, int64_t, size_t, void *[2], uint8_t *);
|
|
void *BeginStore(struct Machine *, int64_t, size_t, void *[2], uint8_t *);
|
|
void *BeginStoreNp(struct Machine *, int64_t, size_t, void *[2], uint8_t *);
|
|
void *FindReal(struct Machine *, int64_t);
|
|
void *Load(struct Machine *, int64_t, size_t, uint8_t *);
|
|
void *LoadBuf(struct Machine *, int64_t, size_t);
|
|
void *LoadStr(struct Machine *, int64_t);
|
|
void *MallocPage(void);
|
|
void *ReserveAddress(struct Machine *, int64_t, size_t);
|
|
void *ResolveAddress(struct Machine *, int64_t);
|
|
void EndStore(struct Machine *, int64_t, size_t, void *[2], uint8_t *);
|
|
void EndStoreNp(struct Machine *, int64_t, size_t, void *[2], uint8_t *);
|
|
void ResetRam(struct Machine *);
|
|
void SetReadAddr(struct Machine *, int64_t, uint32_t);
|
|
void SetWriteAddr(struct Machine *, int64_t, uint32_t);
|
|
void VirtualRecv(struct Machine *, int64_t, void *, uint64_t);
|
|
void *VirtualSend(struct Machine *, void *, int64_t, uint64_t);
|
|
void VirtualSet(struct Machine *, int64_t, char, uint64_t);
|
|
void *RealAddress(struct Machine *, int64_t);
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
#endif /* COSMOPOLITAN_TOOL_BUILD_LIB_MEMORY_H_ */
|