Re: [cfe-users] Building with Clang (on Windows) - but for Linux
On 25/08/2020 17:51, Csaba Raduly wrote: You can debug programs created by clang with gdb (which you already installed). Clang has its own debugger (called lldb). It's packaged separately and you can install it with sudo apt-get install lldb (You can also debug programs created with g++ with lldb. Such is the power of open standards) Thanks Csaba - yes, I was quite surprised to see Clang working just fine with the gdb debugger! BTW - I often see Clang described as "llvm" or "cfe" and I've often wondered what they stand for ?? John ___ cfe-users mailing list cfe-users@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users
Re: [cfe-users] Building with Clang (on Windows) - but for Linux
> BTW - I often see Clang described as "llvm" or "cfe" and I've often wondered > what they stand for ?? LLVM is "Low Level Virtual Machine". That name is a bit confusing, because this isn't the kind of "Virtual Machine" you get from VMWare or the like, but a way of representing programs for a non-existent, hence "virtual," computer architecture. It was created for use in compilers: you have a front-end that translates programming languages into the LLVM representation, and a back-end that generates object files for a specific processor and operating system. That means that to create compilers for X different languages to run on Y different platforms, you only need to write X front-ends and Y backends, rather than X*Y separate compilers. "cfe" is the "C front-end" which also handles C++ and the "Objective" variants of C and C++. https://en.wikipedia.org/wiki/LLVM The idea of having a well-defined intermediate representation for compilers and related tools has been around for nearly sixty years (https://en.wikipedia.org/wiki/CPL_(programming_language)) but LLVM seems to be the most successful implementation to date. -- John Dallman - Siemens Industry Software Limited is a limited company registered in England and Wales. Registered number: 3476850. Registered office: Faraday House, Sir William Siemens Square, Frimley, Surrey, GU16 8QD. ___ cfe-users mailing list cfe-users@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users
Re: [cfe-users] Building with Clang (on Windows) - but for Linux
Hi John, On Wed, 26 Aug 2020 at 10:33, John Emmas via cfe-users wrote: > > BTW - I often see Clang described as "llvm" or "cfe" and I've often > wondered what they stand for ?? Folr LLVM : https://lmgtfy.com/?q=LLVM&pp=1 CFE stands for "C Front-End", a C family (C, C++, Objective C/C++, etc.) language front-end (https://clang.llvm.org/). It's part of the LLVM project. Chris Lattner's first email on cfe-dev (https://lists.llvm.org/pipermail/cfe-dev/2007-July/00.html) already calls it "clang", but "cfe" was the component name in Bugzilla, the mailing list name, and the directory in Subversion ( http://llvm.org/svn/llvm-project/cfe/trunk/ ). Csaba -- You can get very substantial performance improvements by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler So if you're looking for a completely portable, 100% standards-conformant way to get the wrong information: this is what you want. - Scott Meyers (C++TDaWYK) ___ cfe-users mailing list cfe-users@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users
Re: [cfe-users] Building with Clang (on Windows) - but for Linux
Many thanks guys !! ___ cfe-users mailing list cfe-users@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users