Make improvements
- 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
This commit is contained in:
@@ -49,9 +49,8 @@ static privileged void __print$nt(const void *data, size_t len) {
|
||||
* @clob nothing except flags
|
||||
* @see PRINT()
|
||||
*/
|
||||
privileged interruptfn void __print(const void *data, size_t len) {
|
||||
privileged void __print(const void *data, size_t len) {
|
||||
int64_t ax, ordinal;
|
||||
LOAD_DEFAULT_RBX();
|
||||
if (NT_HAVE_IMPORT(__imp_WriteFile)) {
|
||||
__print$nt(data, len);
|
||||
} else {
|
||||
@@ -69,3 +68,9 @@ privileged interruptfn void __print(const void *data, size_t len) {
|
||||
}
|
||||
RESTORE_RBX();
|
||||
}
|
||||
|
||||
privileged void __print_string(const char *s) {
|
||||
size_t n = 0;
|
||||
while (s[n]) ++n;
|
||||
__print(s, n);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user