Make it possible to compile redbean with chibicc

This cuts build latency down from 5 seconds to 500 milliseconds.
This commit is contained in:
Justine Tunney 2022-04-22 15:03:32 -07:00
parent 552525cbdd
commit 6ff46ca373
50 changed files with 898 additions and 824 deletions

View file

@ -192,9 +192,9 @@ void print_loc(int64_t file, int64_t line) {
if (file != lastfile || line != lastline) {
locbuf = malloc(2 + 4 + 1 + 20 + 1 + 20 + 1);
p = stpcpy(locbuf, "\t.loc\t");
p += int64toarray_radix10(file, p);
p = FormatInt64(p, file);
*p++ = ' ';
int64toarray_radix10(line, p);
FormatInt64(p, line);
emitlin(locbuf);
free(locbuf);
lastfile = file;