[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] Re : Code generation: `libtcc` vs transpiling to C and t

From: david . koch
Subject: [Tinycc-devel] Re : Code generation: `libtcc` vs transpiling to C and then compiling with tcc. Why one over another?
Date: Tue, 23 Nov 2021 18:48:37 +0100 (CET)

Hi, what are you trying to achieve ?

MIPS -> x86 ?
MIPS -> C -> tcc -> x86 ?

Or instead of MIPS another language ?

There are several "esoteric" languages that compiles to C, then it's up to you 
using the right compiler for the last mile trip.

Decompiling is a hefty task to do, see my previous request on this list 

While feasible, it's not necessarily the best option.

If you are using an "esoteric" language, it's up to you to produce 
"optimizable" C code that would suit tcc to compile.

Are you doing that at build time or do you plan trying to perform a real-time 
JIT "transpiling" ?

More questions than answers.


----- Mail d'origine -----
De: rempas via Tinycc-devel <tinycc-devel@nongnu.org>
À: tinycc-devel@nongnu.org
Cc: rempas@tutanota.com
Envoyé: Tue, 23 Nov 2021 17:57:49 +0100 (CET)
Objet: [Tinycc-devel] Code generation: `libtcc` vs transpiling to C and then 
compiling with tcc. Why one over another?

Hi! I hope my question is worthy enough so someone spends some time to answer 
me :)

So I want to create a transpiler and I want to use tcc for code generation. So 
I want to
hear opinions about generating code in C and then using tcc (the program) to 
it or using libtcc to generate code. From what I know libtcc exists for cases 
like mine but
from the way that libtcc works, I would still have to convert me code to C so I 
don't find
any advantages. I would also have to deal with other functions as well and with 
the libtcc
API in general so it is also a lot more work to do. Is there something that I 
don't know
about libtcc that makes it worth over using tcc? Thanks in advance!

Tinycc-devel mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]