Похожие чаты

Hey, what is the best and maintained way of transpiling

cpp to c?

(As a need to support many different toolchains quickly and may not have a c++ support in the given toolchain)

11 ответов

54 просмотра

I think none, just because of STL, you can find some analogues of stl for C and rewrite it

Meitar-Reihan Автор вопроса
Meitar-Reihan Автор вопроса
²
and?

So maybe there is a solution for that more "simple" case

Meitar Reihan
So maybe there is a solution for that more "simple...

you want "convert" cpp code to C? can you provide example?

Meitar-Reihan Автор вопроса
²
you want "convert" cpp code to C? can you provide ...

Yes, so I would have classes and RAII concepts I'm not sure that a code example is really needed here

Meitar Reihan
Yes, so I would have classes and RAII concepts I'...

ican suggest you https://github.com/Snaipe/libcsptr with classes you can search some alternatives, but I recommend you use another approach (or try zig/rust xD)

Meitar-Reihan Автор вопроса
²
ican suggest you https://github.com/Snaipe/libcspt...

I'm looking for something more like this https://github.com/JuliaHubOSS/llvm-cbe

Meitar Reihan
I'm looking for something more like this https://g...

Unlike other suggestions I understand what you want, but I haven't seen anything that actually does that (other than things like "<some IR> to C")

Thomas
Unlike other suggestions I understand what you wan...

hmm, what if we can just translate Cpp => IR => C?

²
hmm, what if we can just translate Cpp => IR => C?

Well yeah, that's what the project he already linked to does

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта