Replies: 3 comments 6 replies
-
Carbon's toolchain is being built on top of Clang and LLVM (for more information, see "How will Carbon work?" in the FAQ). The compiler infrastructure is being integrated very deeply, so in theory Carbon should be able to build anything that Clang/LLVM could. However, this does require deep integration, so other C++ compilers cannot be trivially swapped in. If I understand correctly, what you're asking about requires using MSVC, not Clang/LLVM. As a consequence of the above, what you'd need to do would look more like cross-toolchain interoperability (for an outline of this, see the interoperability goal, "Support mixing Carbon and C++ toolchains"). Rather than dropping MSVC into Carbon, you'd need to use Carbon to build something that MSVC could consume. For example, you could use Clang's MSVC compatibility. That might look like:
Note a similar story exists for other C++ compilers, such as GCC. |
Beta Was this translation helpful? Give feedback.
-
My expectation is to write and compile the Windows kernel driver .sys file using carbon. You mean these compilation parameters should be done by llvm right? |
Beta Was this translation helpful? Give feedback.
-
Hi, I made a lite version of wdk, we no longer need to download the 7gb vs2022 or the 13.8gb ewdk iso . For fast bindding to carbon, we only need to download the 26.7mb tar.zst, which is convenient for fast iteration |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
hi,can you make a "new carbon project as windows kernel driver" template use these commands:
carbon -cc msvc -kernel -o driver.sys driver.v
-DUNICODE -D_UNICODE
-DWINVER=0x0600 -D_WIN32_WINNT=0x0600 -DNTDDI_VERSION=0x06000000
-I"C:\WinDDK\7600.16385.1\inc\ddk"
-Wl,/entry:DriverEntry -Wl,/subsystem:native -Wl,/nodefaultlib
-lntoskrnl.lib -lhal.lib
Beta Was this translation helpful? Give feedback.
All reactions