[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] Re : Code generation: `libtcc` vs transpiling to C and t
david . koch
[Tinycc-devel] Re : Code generation: `libtcc` vs transpiling to C and then compiling with tcc. Why one over another?
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 <firstname.lastname@example.org>
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
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
any advantages. I would also have to deal with other functions as well and with
API in general so it is also a lot more work to do. Is there something that I
about libtcc that makes it worth over using tcc? Thanks in advance!
Tinycc-devel mailing list