Hello forum,
I decided to switch my c compiler to tiny cc. Only thing i dont understand is compiling into binary format. Right now Im compiling using "tcc -o test.exe test.c". How do I go bout adding the option to compile into binary?
1 reply to this topic
#1
Posted 06 September 2010 - 08:09 PM
|
|
|
#2
Posted 06 September 2010 - 08:56 PM
As with any basic compiler collection, it will include an compiler and linker.
Compile C source to object (much like gcc's a.out); Here we use the -c option to compile:
Compile C source to object (much like gcc's a.out); Here we use the -c option to compile:
tcc -c test.c -o test.oThen we link it:
tcc text.o -o test.exe
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









