Hi everyone, I'm trying to figure something out. I'm using the latest version of Code::Block and I'm even using Dev C++. Maybe I'm doing something wrong, but I'm a visual learner, so when it comes to programming, I do some reading and then look at how others have done it and so fourth. Then study changes in the code and compile it, but I'm having difficulty finding any open source interpreters that I can get to run. Any help will be greatly appreciated.
Also, the word "interpreter", at least in my experience, refers to the dynamic line-by-line execution that languages such as Python are capable of, as opposed to a compiler which takes a whole source file and turns it into machine code. I do not know of a C++ interpreter; I assume some exist, but I doubt it will be something that comes with any popular IDE by default.
I don't think OP is asking about actual interpreters, but anyway:
There are C++ interpreters (maybe one or two?). One is ROOT. There's also a JIT sample that comes with libclang. ROOT has a REPL like other interpreters, but last time I checked uses a dialect of C++ that's different from standard C++. libclang JITs proper C++, but can't do REPL. Also, right now libclang leaks memory every time you compile something. On the other hand, libclang's JITted code is exactly what Clang outputs, so you get the same performance as with the command line compiler.
You can use the compiler Open Watcom V2 Fork (http://www.openwatcom.org/). It can work and create executable files for Windows (16-bit, 32-bit and 64-bit versions), Linux (32-bit and 64-bit versions), OS/2 and MS-DOS ( 16-bit and 32-bit modes). Or Digital Mars C/C++ (https://digitalmars.com/download/freecompiler.html) - is a replacement for Symantec C++. If your PC doesn't have a floating-point processor (pre-Pentium), you can associate emulation with a floating point in your program. I also recommend to use the site https://assignment.essayshark.com/computer-science-help.html where besides helping with various assignments, you can find useful information in the blog about this language.