Difference between revisions of "C"

From mmmv_kos
Jump to: navigation, search
(Created page with " C++ = Transleerimine = == C++ -> C == [https://stackoverflow.com/questions/1833484/c-frontend-only-compiler-convert-c-to-c Väidetavalt saab] LLVM abil C++ korrali...")
 
m
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
  
[[C++]]
+
* [[C++]]
 +
* [[C : Koodinäited|Koodinäited]]
 +
 
 +
 
 +
 
 +
= Kompilaatorid ja Interpretaatorid ja Analüsaatorid =
 +
 
 +
* [https://www.pellesc.de/ Pelles C] [[File:2018 08 20 Pelles C IDE and compiler v 9 0 0 setup.zip]]
 +
* [http://ladsoft.tripod.com/ LADSoft] [https://github.com/LADSoft/OrangeC OrangeC] ja selle [http://www.manoscoder.gr/mysite/coderstudio.htm haru] [https://forum.pellesc.de/index.php?topic=6163.0 reklaam Pelles C foorumil]
  
  
Line 11: Line 19:
  
 
[https://stackoverflow.com/questions/1833484/c-frontend-only-compiler-convert-c-to-c Väidetavalt saab] LLVM abil C++ korralikult C'ks transleerida l
 
[https://stackoverflow.com/questions/1833484/c-frontend-only-compiler-convert-c-to-c Väidetavalt saab] LLVM abil C++ korralikult C'ks transleerida l
 +
 +
 +
    llvm-g++ -emit-llvm -c foo.cpp -o foo.o
 +
    llc -march=c <foo.o >foo.c

Latest revision as of 18:48, 16 January 2020


Kompilaatorid ja Interpretaatorid ja Analüsaatorid



Transleerimine

C++ -> C

Väidetavalt saab LLVM abil C++ korralikult C'ks transleerida l


   llvm-g++ -emit-llvm -c foo.cpp -o foo.o
   llc -march=c <foo.o >foo.c