Change building progress
This commit is contained in:
parent
f9be18503d
commit
9e65a3c710
10
README
10
README
|
@ -20,14 +20,12 @@ Some features had been removed momently but now they are usable,including:
|
||||||
- fenv library(maybe applying a patch to TinyCC is needed)
|
- fenv library(maybe applying a patch to TinyCC is needed)
|
||||||
|
|
||||||
To compile,simply run
|
To compile,simply run
|
||||||
export CC=tcc # Set the compiler
|
./configure --target=x86_64 CC='tcc' AR='tcc -ar' RANLIB='echo' \
|
||||||
export RANLIB='tcc -r' # Using tcc builtin librarian
|
LIBCC='/usr/local/lib/tcc/libtcc1.a'
|
||||||
export AR='tcc -ar' # See above
|
|
||||||
./configure --target=x86_64 # The script cannot detect the
|
|
||||||
# platform with tcc because of
|
|
||||||
# missing option "-dumpmachine"
|
|
||||||
make # I finish my compiling in 10s with
|
make # I finish my compiling in 10s with
|
||||||
two threads on i7-720QM @ 1.60GHz
|
two threads on i7-720QM @ 1.60GHz
|
||||||
|
TinyCC's runtime environment library libtcc1.a needs specifying manually
|
||||||
|
now.The path of argument LIBCC may need adjusting for your machine.
|
||||||
|
|
||||||
All modified and addtional files are under MIT License as well.
|
All modified and addtional files are under MIT License as well.
|
||||||
Some changes are made to my TinyCC (This means I may have a different
|
Some changes are made to my TinyCC (This means I may have a different
|
||||||
|
|
|
@ -5,4 +5,7 @@
|
||||||
# file: /tests/Compile.sh
|
# file: /tests/Compile.sh
|
||||||
# Date: 2022.04.03
|
# Date: 2022.04.03
|
||||||
|
|
||||||
tcc $1 -nostdlib ../lib/Scrt1.o ../lib/libc.a -o $2 -Wall -Werror -g -O0 -pedantic -Wextra -I ../include -I ../obj/include -I ../arch/x86_64/
|
tcc $1 -nostdlib ../lib/Scrt1.o ../lib/libc.a -o $2 -Wall -Werror -g -O0 \
|
||||||
|
-pedantic -Wextra -I ../include -I ../obj/include \
|
||||||
|
-I ../arch/x86_64/ /usr/lib/ \
|
||||||
|
/usr/local/lib/tcc/libtcc1.a
|
||||||
|
|
Loading…
Reference in New Issue