summaryrefslogtreecommitdiff
path: root/6/asm.h
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-11-17 22:54:08 -0800
committerOri Bernstein <ori@eigenstate.org>2015-11-17 22:54:08 -0800
commit82ffa8d68b897200ae2fedc863aa7ac064660d1d (patch)
tree46fe896aae3256cfaa4948b9eebacbd1615a23ce /6/asm.h
parent8531896f8d21ba1e727262aaf5cd96043590b480 (diff)
downloadmc-82ffa8d68b897200ae2fedc863aa7ac064660d1d.tar.gz
Put empty symbols in bss, and use .fill directives.
We don't need to put zero bytes into the binary, and we don't need to generate thousands of .byte directives.
Diffstat (limited to '6/asm.h')
-rw-r--r--6/asm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/6/asm.h b/6/asm.h
index 9b6dd1a..5d0477f 100644
--- a/6/asm.h
+++ b/6/asm.h
@@ -67,6 +67,7 @@ typedef enum {
Btbytes,
Btseq,
Btpad,
+ Btzero,
} Blobtype;
struct Blob {
@@ -253,6 +254,7 @@ void gengas(Node *file, char *out);
void genp9(Node *file, char *out);
/* blob stuff */
+Blob *mkblobzero(size_t sz);
Blob *mkblobpad(size_t sz);
Blob *mkblobi(Blobtype type, uint64_t ival);
Blob *mkblobbytes(char *buf, size_t len);