070 - C++ LLVMclang++ 모듈 설명서 - 클랭 모듈 맛보기, C++ module tutorial

37 Просмотры
Издатель
clang++ -std=c++20 -c -Xclang -emit-module-interface math.cxx -o math.pcm
clang++ -std=c++20 -c -fmodule-file=math=math.pcm main.cpp
or
clang++ -std=c++20 -c -fmodule-file=math.pcm main.cpp
clang++ math.pcm main.o -o c.exe

컴파일 방법 B

clang++ -std=c++20 -c -Xclang -emit-module-interface math.cxx -o math.pcm
clang++ -std=c++20 -c -fprebuilt-module-path=. main.cpp

Documentation for LLVM\clang Module

1. Modules (since C++20)
https://en.cppreference.com/w/cpp/language/modules

2. C++ Support in Clang
https://clang.llvm.org/cxx_status.html

3. Explaining C++20 Modules
https://blog.ecosta.dev/en/tech/explaining-cpp20-modules

4. C++ modules with Clang
https://blog.ecosta.dev/en/tech/cpp-modules-with-clang

5. Clang 13 documentation
https://clang.llvm.org/docs/Modules.html

6. MSVC compatibility
https://clang.llvm.org/docs/MSVCCompatibility.html

7. Merging Modules - open-std
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1103r3.pdf

8. C++23 Working Draft, Standard for Programming Language C++
https://en.cppreference.com/w/cpp/links

9. Standard Library Modules
https://sourcecode.talkplayfun.com/cpp-meta-programming/p0581r0.pdf

연락처: https://www.talkplayfun.com/Contacts/

영어채널:
https://www.youtube.com/channel/UCpQ9kTWohSlFgXIKJmFc4kA

재생목록
https://www.youtube.com/watch?v=qZEx_Md_jeM&list=PLsIvhalfft1EtaiJJRmWKUGG0W1hyUKiw

이전 동영상

069 - C++ LLVM\clang++ 모듈 설명서 - 영어 잘 못해도, 뜻 모르는, 사전에도 없는 단어가 있어도, 기술문서를 효과적으로 읽는 방법
https://www.youtube.com/watch?v=1BdYQrnrn6g&list=PLsIvhalfft1EtaiJJRmWKUGG0W1hyUKiw&index=69

069 - C++ LLVM\clang++ 모듈 설명서 - 영어 잘 못해도, 뜻 모르는, 사전에도 없는 단어가 있어도, 기술문서를 효과적으로 읽는 방법
https://www.youtube.com/watch?v=1BdYQrnrn6g&list=PLsIvhalfft1EtaiJJRmWKUGG0W1hyUKiw&index=69

068 - 최신 C++ 언어를 매우 쉽게 배우는 방법 - 재귀 하양 파서 - Recursive Descent Parser Tree
https://www.youtube.com/watch?v=iSYq_d1JHtM&list=PLsIvhalfft1EtaiJJRmWKUGG0W1hyUKiw&index=68

067 - C++ Module 모듈 자습서 4, Module Partition 모듈 파티션, primary 주 모듈, 표준 모듈, 모듈 호환성 /interface (MSVC)
https://www.youtube.com/watch?v=rn697IP6gGg&list=PLsIvhalfft1EtaiJJRmWKUGG0W1hyUKiw&index=67

066 - C++ Module 모듈 자습서 3, /reference, /interface /TP, MSVC, g++, clang++ 모듈 호환성
https://www.youtube.com/watch?v=-1HeUpM8nSw&list=PLsIvhalfft1EtaiJJRmWKUGG0W1hyUKiw&index=66

065 - C++ Module 모듈 자습서 2, import, /exportHeader /headerName /headerUnit, Microsoft Visual C++ MSVC
https://www.youtube.com/watch?v=loaNZJIlLU8&list=PLsIvhalfft1EtaiJJRmWKUGG0W1hyUKiw&index=65
https://www.youtube.com/watch?v=X8Tw5r0DOPk&list=PLsIvhalfft1EtaiJJRmWKUGG0W1hyUKiw&index=63

소스코드 다운로드:

070 - C++ LLVM\clang++ 모듈 설명서 - 클랭 모듈 맛보기, C++ module tutorial
https://sourcecode.talkplayfun.com/cpp-meta-programming/070-ClangModule.zip

067 - C++ Module 모듈 자습서 4, Module Partition 모듈 파티션, 표준 모듈, 모듈 호환성 /interface (MSVC)
https://sourcecode.talkplayfun.com/cpp-meta-programming/067-MsvcModulePartition.zip

066 - C++ Module 모듈 자습서 3, /reference, /interface /TP, MSVC, g++, clang++ 모듈 호환성
https://sourcecode.talkplayfun.com/cpp-meta-programming/066-MsvcModuleInterface.zip

065 - C++ Module 모듈 자습서 2, import, /exportHeader /headerName /headerUnit, Microsoft Visual C++ (MSVC)
https://sourcecode.talkplayfun.com/cpp-meta-programming/065-MsvcModule.zip
Категория
Язык программирования C++
Комментариев нет.