S
S
Sergey Karbivnichy2016-01-21 22:19:48
C++ / C#
Sergey Karbivnichy, 2016-01-21 22:19:48

How to generate an elf file using tiny c compiler in windows?

The command C:\\tools\tcc\tcc -nostdlib main.ccreates an executable file of PE format, but how to get an executable file of ELF format?
Looked at the documentation, it says:

`-Wl,--oformat,fmt'
Use fmt as output format. The supported output formats are:
elf32-i386
ELF output format (default)
binary
Binary image (only for executable output)
coff
COFF output format (only for executable output for TMS320C67xx target)

but I don't understand how to pass such options to tcc.exe(

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Timur Sergeevich, 2016-01-21
@MyAlesya

Maybe so?
`-Wl,--oformat,elf32-i386'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question