|
-
Feb 23rd, 2001, 04:18 AM
#1
Thread Starter
Fanatic Member
Keeping in mind that BASIC and Visual Basic both do this, I was wondering if there is, or if anybody has ever attemted to write, a c or c++ interpreter (as opposed to compiler).
If there is such a thing (for Windows), any ideas on where I can get it?
-
Feb 23rd, 2001, 07:43 AM
#2
Monday Morning Lunatic
There was a C interpreter for RISC OS machines a few years ago, and Beebug C for the BBC partially interpreted (I think).
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Feb 23rd, 2001, 08:51 AM
#3
Addicted Member
hmm, is that what the CLR is going to do?
substring.
-
Feb 23rd, 2001, 08:30 PM
#4
Thread Starter
Fanatic Member
so there isn't one for windows?
-
Feb 23rd, 2001, 09:35 PM
#5
Turning C++ into a interprated language would defeat the whole purpous for writting in C++. It would be like programming in VB with C++ syntax.
-
Feb 25th, 2001, 03:22 AM
#6
Addicted Member
CLR is using on the Microsoft .NET framework, and it is of course for Windows.
-
Feb 25th, 2001, 06:34 PM
#7
Thread Starter
Fanatic Member
Originally posted by ChimpFace9000
Turning C++ into a interprated language would defeat the whole purpous for writting in C++. It would be like programming in VB with C++ syntax.
I guess. But I'm used to fully debugging my code before I compile. (As you can tell, I'm switching from VB)
-
Feb 26th, 2001, 09:12 AM
#8
Addicted Member
Keep in mind that a program that compiles does not mean it is bug free. It only mean that you are syntactically correct, that's all. Your program might still not run. And it is the same in VB. The Ctrl-F5 only check your syntax and not your logic. So it is not really debugging.
Hope this helps.
substring.
-
Mar 1st, 2001, 01:32 AM
#9
Thread Starter
Fanatic Member
well actually what i'm looking for is a program that has an immediate window and a step-debugger (like what vb has) so i can test a single subroutine without having to compile thousands of lines. (what a dream...) When vb interprets a program, there is about a one second wait before the program runs. With most c++ compilers i've used, the wait is much longer.
-
Mar 1st, 2001, 02:03 AM
#10
Frenzied Member
It will only compile anything that's changed since last time it was compiled. If you're making minor chages and having to wait ages for compilation, you could try splitting a section of code off into another source file. That way only the file with the new code will be recompiled. Well there is still linking and stuff to be done but it will be quicker.
VC++ has a debugger, but I think you already knew that.
Harry.
"From one thing, know ten thousand things."
-
Mar 2nd, 2001, 01:11 AM
#11
Thread Starter
Fanatic Member
acually, i don't know how good of a debugger vc++ has. I'm a vb user thinking of transitioning to vc++ and am looking for the simplest route. Don;t get me wrong, I WILL be switching to c++, I just don't know how easy it will be for me.
-
Mar 2nd, 2001, 02:21 AM
#12
Frenzied Member
Well you can debug your code using VC++ (I have version 6, can't say anything about the previous versions) in much the same way as you can in VB. You can set breakpoints and watch values, including complex structures. I think you have to use the 'Go' option (F5) rather than the 'Execute' option (Ctrl-F5) to use the debugger, I guess it will interpret the code if you do that. Well you can debug pretty easily anyway.
I used to use VB until about a year ago, when I started to learn C and C++. I have learnt some of both C and C++ because I was learning C++ in my spare time but at university one of the programming languages they taught was straight C, so I know both, more or less. I'm by no means an expert but I am comfortable in C++, and I quite rarely see something I've never come across before. I made the transition mainly because I am interested in games programming, and C++ is the language of choice for that (along with maybe Delphi, but I don't like Pascal syntax much).
Give it a shot, you'll probably run into a few problems since C/C++ is a lower level language and there are some new concepts like pointers, references and operator overloading (the latter two C++ only) but stick with it and I think you'll like it.
I hardly ever use VB anymore, except to help people out on this forum.
Harry.
"From one thing, know ten thousand things."
-
Mar 2nd, 2001, 01:26 PM
#13
Monday Morning Lunatic
The VC++ debugger still compiles the code, but keeps track of which instructions correspond to which line of code, and suspends the thread as necessary.
C also has references, it's not just C++.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Mar 3rd, 2001, 03:36 AM
#14
Frenzied Member
Okiedoke, I get confused between the two since I use them both
Harry.
"From one thing, know ten thousand things."
-
Mar 3rd, 2001, 08:05 AM
#15
Monday Morning Lunatic
No problem...I was doing some C code and thought it was okay...I'd forgotten you need to declare variables at the start AAAAARRRRRGGGGHHHHHH
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|