Jump to content

Tiny cc

- - - - -

  • Please log in to reply
1 reply to this topic

#1
darknoobie

darknoobie

    Newbie

  • Members
  • PipPip
  • 19 posts
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?

#2
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,118 posts
  • Location:Vancouver, Eh! Cleverness: 200
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:
tcc -c test.c -o test.o 
Then 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.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users