Get codebase completely working with LLVM
You can now build Cosmopolitan with Clang:
make -j8 MODE=llvm
o/llvm/examples/hello.com
The assembler and linker code is now friendly to LLVM too.
So it's not needed to configure Clang to use binutils under
the hood. If you love LLVM then you can now use pure LLVM.
This commit is contained in:
@ -20,7 +20,7 @@
|
||||
.text.unlikely
|
||||
.source __FILE__
|
||||
|
||||
/ Code-size saving thunk for CHECK_EQ() in NDEBUG mode.
|
||||
// Code-size saving thunk for CHECK_EQ() in NDEBUG mode.
|
||||
__check_fail_eq:
|
||||
loadstr "==",dx
|
||||
jmp __check_fail_ndebug
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
.text.unlikely
|
||||
.source __FILE__
|
||||
|
||||
/ Code-size saving thunk for CHECK_GE() in NDEBUG mode.
|
||||
// Code-size saving thunk for CHECK_GE() in NDEBUG mode.
|
||||
__check_fail_ge:
|
||||
loadstr ">=",dx
|
||||
jmp __check_fail_ndebug
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
.text.unlikely
|
||||
.source __FILE__
|
||||
|
||||
/ Code-size saving thunk for CHECK_GT() in NDEBUG mode.
|
||||
// Code-size saving thunk for CHECK_GT() in NDEBUG mode.
|
||||
__check_fail_gt:
|
||||
loadstr ">",dx
|
||||
jmp __check_fail_ndebug
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
.text.unlikely
|
||||
.source __FILE__
|
||||
|
||||
/ Code-size saving thunk for CHECK_LE() in NDEBUG mode.
|
||||
// Code-size saving thunk for CHECK_LE() in NDEBUG mode.
|
||||
__check_fail_le:
|
||||
loadstr "<=",dx
|
||||
jmp __check_fail_ndebug
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
.text.unlikely
|
||||
.source __FILE__
|
||||
|
||||
/ Code-size saving thunk for CHECK_LT() in NDEBUG mode.
|
||||
// Code-size saving thunk for CHECK_LT() in NDEBUG mode.
|
||||
__check_fail_lt:
|
||||
loadstr "<",dx
|
||||
jmp __check_fail_ndebug
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
.text.unlikely
|
||||
.source __FILE__
|
||||
|
||||
/ Code-size saving thunk for CHECK_NE() in NDEBUG mode.
|
||||
// Code-size saving thunk for CHECK_NE() in NDEBUG mode.
|
||||
__check_fail_ne:
|
||||
loadstr "!=",dx
|
||||
jmp __check_fail_ndebug
|
||||
|
||||
Reference in New Issue
Block a user