在 MinGW 環境中測試 TinyCC

TinyCC 編譯器

簡介

MinGW 測試

整體架構

編譯器

組譯器

目的檔

連結器

整合測試

訊息

相關網站

參考文獻

最新修改

簡體版

English

ccc@R424-10 ~
$ cd tcc

ccc@R424-10 ~/tcc
$ ls
COPYING    c67-gen.c   i386-asm.h    libtcc.h      tccasm.c   tests
Changelog  coff.h      i386-gen.c    stab.def      tcccoff.c  texi2pod.pl
Makefile   config.h    il-gen.c      stab.h        tccelf.c   win32
README     configure   il-opcodes.h  tcc-doc.html  tccgen.c   x86_64-gen.c
TODO       elf.h       include       tcc-doc.texi  tccpe.c
VERSION    examples    lib           tcc.c         tccpp.c
arm-gen.c  i386-asm.c  libtcc.c      tcc.h         tcctok.h

ccc@R424-10 ~/tcc
$ ./configure
Binary  directory   C:/Program Files/tcc
TinyCC directory    C:/Program Files/tcc
Library directory   C:/Program Files/tcc/lib
Include directory   C:/Program Files/tcc/include
Manual directory    C:/Program Files/tcc/man
Doc directory       C:/Program Files/tcc/doc
Target root prefix
Source path      /home/ccc/tcc
C compiler       gcc
CPU              x86
Big Endian       no
gprof enabled    no
cross compilers  no
use libgcc       no
Creating config.mak and config.h

ccc@R424-10 ~/tcc
$ make
gcc -o tcc.exe tcc.c -DTCC_TARGET_PE -O2 -g -Wall -fno-strict-aliasing -mpreferr
ed-stack-boundary=2 -march=i386 -falign-functions=0 -Wno-pointer-sign -Wno-sign-
compare -D_FORTIFY_SOURCE=0
gcc -o tiny_impdef.exe win32/tools/tiny_impdef.c -O2 -g -Wall -fno-strict-aliasi
ng -mpreferred-stack-boundary=2 -march=i386 -falign-functions=0 -Wno-pointer-sig
n -Wno-sign-compare -D_FORTIFY_SOURCE=0
gcc -o tiny_libmaker.exe win32/tools/tiny_libmaker.c -O2 -g -Wall -fno-strict-al
iasing -mpreferred-stack-boundary=2 -march=i386 -falign-functions=0 -Wno-pointer
-sign -Wno-sign-compare -D_FORTIFY_SOURCE=0
./tcc.exe -Bwin32 -DTCC_TARGET_PE -o libtcc1.o -c lib/libtcc1.c -O2 -Wall
./tcc.exe -Bwin32 -DTCC_TARGET_PE -o crt1.o -c win32/lib/crt1.c -O2 -Wall
./tcc.exe -Bwin32 -DTCC_TARGET_PE -o wincrt1.o -c win32/lib/wincrt1.c -O2 -Wall
win32/lib/wincrt1.c:35: warning: implicit declaration of function 'exit'
./tcc.exe -Bwin32 -DTCC_TARGET_PE -o dllcrt1.o -c win32/lib/dllcrt1.c -O2 -Wall
./tcc.exe -Bwin32 -DTCC_TARGET_PE -o dllmain.o -c win32/lib/dllmain.c -O2 -Wall
./tcc.exe -Bwin32 -DTCC_TARGET_PE -o chkstk.o -c win32/lib/chkstk.S
./tcc.exe -Bwin32 -DTCC_TARGET_PE -o alloca86.o -c lib/alloca86.S

Facebook

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License