Skip to content
Advertisement

Tag: llvm

Can’t compile to .wasm on Linux

Summary (Edit: removed all unnecessary information, added Windows10 experience, upgraded CLANG on Ubuntu to the same version, removed Debian10 due to old CLANG version) I’ve created a pretty simple WASM module, compiled on MacOS, works ✅, compiled on MS-Windows10, works ✅, compiled on Ubuntu21.10: produces 318 bytes of zeros ❌, Details Symptom On Ubuntu21, the linker produces the file with

compatibility issues with regex between Mac and Linux machines

Original Question: “I developed a program on my Mac using Xcode 8’s latest LLVM 8 compiler (clang 8/3.8?) which made heavy use of regular expressions out of c++14. I was then unable to get my code to give me the correct output when running on linux. There seem to be some regular expression compatibility issues that I am unaware of.

Generate LLVM C++ API code as backend

The Online LLVM demo page had an option to generate LLVM C++ API code as backend from a source code. However, that demo page is now disabled. I was wondering how we can do it ourselves using the available LLVM tools. I tried the following which gives the following error I am using LLVM/Clang version 3.2. Answer The LLVM C++

Advertisement