mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-24 11:30:29 +00:00
Avoid legacy instruction penalties on x86
This commit is contained in:
parent
1fba310e22
commit
8d8aecb6d9
16 changed files with 199 additions and 158 deletions
|
@ -97,6 +97,14 @@ o/$(MODE)/libc/intrin/x86.o: private \
|
|||
-fpatchable-function-entry=0 \
|
||||
-Os
|
||||
|
||||
# avoid the legacy sse decoding penalty on avx systems
|
||||
o//libc/intrin/dll.o \
|
||||
o//libc/intrin/fds.o \
|
||||
o//libc/intrin/mmap.o \
|
||||
o//libc/intrin/demangle.o: private \
|
||||
CFLAGS += \
|
||||
-mgeneral-regs-only
|
||||
|
||||
# these assembly files are safe to build on aarch64
|
||||
o/$(MODE)/libc/intrin/aarch64/%.o: libc/intrin/aarch64/%.S
|
||||
@$(COMPILE) -AOBJECTIFY.S $(OBJECTIFY.S) $(OUTPUT_OPTION) -c $<
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue