History

win64: Use tcc's own assembler

Now that we have it thanks to Mr. Féret

grischka committed 16 years ago

Commit a26bf101 parent 50055881 file · +5 −5Browse files

Unified · Split

win32/build-tcc.bat+5−5
@@ -17,6 +17,7 @@ echo>>..\config.h #define CONFIG_SYSROOT "" · 16 unmodified lines
1717 :x86_64
1818 echo>>..\config.h #define TCC_TARGET_X86_64 1
1919 @set P=x86_64-pc-mingw32-
20+@set S=_64
2021 @goto tools
2122
2223 :tools
@@ -39,14 +40,13 @@ copy ..\libtcc.h libtcc\libtcc.h · 16 unmodified lines
3940 .\tcc -c lib/dllcrt1.c
4041 .\tcc -c lib/dllmain.c
4142 .\tcc -c ../lib/libtcc1.c
42−@if not x%P%==x goto asm64
43+@rem if not x%P%==x goto use_yasm
4344 .\tcc -c lib/chkstk.S
44−.\tcc -c ../lib/alloca86.S
45−tiny_libmaker lib/libtcc1.a crt1.o wincrt1.o dllcrt1.o dllmain.o chkstk.o libtcc1.o alloca86.o
45+.\tcc -c ../lib/alloca86%S%.S
46+tiny_libmaker lib/libtcc1.a crt1.o wincrt1.o dllcrt1.o dllmain.o chkstk.o libtcc1.o alloca86%S%.o
4647 @goto cleanup
4748
48−:asm64
49−@rem !!! currently TinyCC doesn't 64bit asm. Need 'yasm' !!!
49+:use_yasm
5050 .\tcc -o tmp.s -E lib/chkstk.S
5151 yasm -p gnu -f elf64 -o chkstk.o tmp.s
5252 .\tcc -o tmp.s -E ../lib/alloca86_64.S

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t