Questions tagged [tcc]

TCC is a tiny C compiler which enables you to use C as scripting language.

117 questions
1
vote
1 answer

GLFW gl.h error when compiling C via TCC

When I try to compile a simple GLFW program with TCC, I get an error in the gl.h header. The command I'm using for the compile is tcc -L./ -lglfw3 -Iglfw/include main.c Here's the full output of this command >tcc -L./ -lglfw3 -Iglfw/include…
1
vote
1 answer

How To Save The Output Of Tiny C Compiler Into A File?

I Wanna Save The Output Of The C Compiler Named tcc. Tryed Using Redirections In Windows 7 Command Prompt But It Generates An Empty File And Writes The Output In The Command Prompt. This Is What I Use In Command Prompt: tcc -o test.exe test.c >…
hmak.me
  • 3,770
  • 1
  • 20
  • 33
1
vote
1 answer

Tiny C Compiler arm

I would like to compile and run C code at runtime for iOS and Android. Can Tiny C Compiler run on arm64 and armv7? If that's possible, how do I set up the XCode and android project to run Tiny C Compiler?
adriank
  • 143
  • 11
1
vote
1 answer

How to hide windows console in c++ tcc

How to hide console window, Compiler is tiny C //Tiny C -> http://download.savannah.gnu.org/releases/tinycc/ #include int main() { system("Taskkill /IM test.exe /F"); return 0; }
Ali Dbg
  • 63
  • 1
  • 2
  • 5
1
vote
3 answers

Tiny C Compiler and Virus warnings

I wanted to try out the TCC and got the Win32 Binary zip file from the website. upon decompressing it I tried to compile the "hello_win.c" source from the example directory. As soon as the compiler tried to write to the disk McAfee Popped up a…
NoMoreZealots
  • 5,274
  • 7
  • 39
  • 56
1
vote
2 answers

How to set the Turbo C path in windows?

How to set the turbo c path in windows globally so that i can compile and run my C programs (which are in other drives) using command prompt in windows XP? Can any one tell me how to get commands at every drive in the command prompt just by typing…
Manoj Doubts
  • 13,579
  • 15
  • 42
  • 45
1
vote
1 answer

TCC issue: libtcc1.a not found

I am trying to have some fun with TCC, but there seams to be a problem: magniff@/home/magniff/Downloads/tcc-0.9.26> ./tcc examples/ex1.c -Iinclude -Llib tcc: error: file '/usr/local/lib/tcc/libtcc1.a' not…
1
vote
1 answer

Adding Compilers On Netbeans

I have attempted to use the Netbeans IDE for C/C++. Upon startup, I noticed that the only compiler chains it accepts are: MingGw, Cygwin, and Clang. My compiler is the latest version of TCC for win64. Can I define my own compiler chain for…
James Parsons
  • 6,097
  • 12
  • 68
  • 108
1
vote
2 answers

Questions about implementation of a global register allocator for the tiny c compiler

upcoming summer i will hopefully start writing my masters thesis and i have been quite busy looking for a thesis subject. I now have a pool of subjects that i am interested in and the one that struck me most is the implementation of a global…
user118861
1
vote
1 answer

Tiny C Compiler link my assembly object file

Is it possible to link a *.o file generated with nasm in tcc? With gcc it works fine for me: nasm -f win32 -o fastmath.o fastmath.asm gcc -o powerTest.exe powerTest.cpp cexport.o When I try the same procedure with tcc, i got the following error:…
1
vote
1 answer

Hello world with TCC using assembly language?

I don't understand an assembly language, and in my school they do this just to show what is assembly language and how to compile. Can you guys give me some basic hello world example using assembly language that can run with tccasm? any help…
1
vote
0 answers

"undefined symbol" TCC

I'm linking a TCC DLL and I'm getting "undefined symbol" whenever I call a function from the DLL. I linked the .def file required for using the DLL. That's all though. Other then linking the .def file, what am I doing wrong?
1
vote
2 answers

How do I make tcc search for libraries in /usr/lib?

On my Raspberry PI computer I have compiled the tcc compiler from source (in /usr/local/src). When I link with a library in /usr/lib, tcc cannot find it so I need to add -L/usr/lib to the tcc command. How do I configure and make tcc to include…
August Karlstrom
  • 10,773
  • 7
  • 38
  • 60
1
vote
1 answer

Tiny C Compiler: "error: unknown opcode 'jmp'"

Given this code: int main(void) { __asm volatile ("jmp %eax"); return 0; } 32-bit TCC will complain with: test.c:3: error: unknown opcode 'jmp' but the 64-bit version will compile just fine. What's the problem with the 32 bit code?
hauzer
  • 258
  • 3
  • 12
1
vote
3 answers

passing tokens from array to strcmp

What I am trying to do is to break the user input in parts with whitespace as a delimiter, copy the parts into the array (tokenAr) and compare the tokenAr[0] (the first part) if it is equal to sHistory. if they are equal, check the value of…
serge
  • 366
  • 1
  • 4
  • 22