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
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
  
 
[[C++]]
 
[[C++]]
 +
 +
 +
 +
= Kompilaatorid ja Interpretaatorid ja Analüsaatorid =
 +
 +
* [https://www.pellesc.de/ Pelles C]
 +
* [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 18:
  
 
[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

Revision as of 10:04, 16 January 2020

C++


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