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
17:x86_6417:x86_64
18echo>>..\config.h #define TCC_TARGET_X86_64 118echo>>..\config.h #define TCC_TARGET_X86_64 1
19@set P=x86_64-pc-mingw32-19@set P=x86_64-pc-mingw32-
20@set S=_64
20@goto tools21@goto tools
21 22
22:tools23:tools
@@ -39,14 +40,13 @@ copy ..\libtcc.h libtcc\libtcc.h · 16 unmodified lines
39.\tcc -c lib/dllcrt1.c40.\tcc -c lib/dllcrt1.c
40.\tcc -c lib/dllmain.c41.\tcc -c lib/dllmain.c
41.\tcc -c ../lib/libtcc1.c42.\tcc -c ../lib/libtcc1.c
42@if not x%P%==x goto asm6443@rem if not x%P%==x goto use_yasm
43.\tcc -c lib/chkstk.S44.\tcc -c lib/chkstk.S
44.\tcc -c ../lib/alloca86.S45.\tcc -c ../lib/alloca86%S%.S
45tiny_libmaker lib/libtcc1.a crt1.o wincrt1.o dllcrt1.o dllmain.o chkstk.o libtcc1.o alloca86.o46tiny_libmaker lib/libtcc1.a crt1.o wincrt1.o dllcrt1.o dllmain.o chkstk.o libtcc1.o alloca86%S%.o
46@goto cleanup47@goto cleanup
47 48
48:asm6449:use_yasm
49@rem !!! currently TinyCC doesn't 64bit asm. Need 'yasm' !!!
50.\tcc -o tmp.s -E lib/chkstk.S50.\tcc -o tmp.s -E lib/chkstk.S
51yasm -p gnu -f elf64 -o chkstk.o tmp.s51yasm -p gnu -f elf64 -o chkstk.o tmp.s
52.\tcc -o tmp.s -E ../lib/alloca86_64.S52.\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