-
Notifications
You must be signed in to change notification settings - Fork 0
Maciej-Poleski/kompilator
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Requirements: - C++14 compiler - LLVM 4 - Flex 2.6 - Bison 3 How to build: mkdir build cd build cmake -DCMAKE_BUILD_TYPE=Release .. make How to use: ./kompilator SOURCE_FILE Output file has name SOURCE_FILE + ".o". Example: cat <<EOF > main.cpp #include <iostream> extern "C" int add(int, int); int main() { std::cout << add(5,6) << '\n'; return 0; } EOF ./kompilator ../sample/simple.di g++ ../sample/simple.di.o ../runtime/runtime.cxx main.cpp -o simple ./simple Compiler takes one optional argument after SOURCE_FILE: ./kompilator ../sample/simple.di -v It instructs compiler to dump the whole module LLVM bytecode to stderr. Standard object code output file is also generated. Tested with: - GCC 6.3 - LLVM 4
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published