Home News Reviews Forums Shop


Question regarding TC++ compiler.

Anything else

Question regarding TC++ compiler.

Postby pranav81 on Tue Jan 20, 2004 2:53 pm

Hi guys,
I noticed a weird thing today.When I started the Turbo C++ compiler
today,the CPU usage increased to 100%.When I checked the Task Manager I saw the ntvdm.exe was using all the CPU resources.I noticed this first time today.It may be possible that the CPU usage was 100%
whenever I used the TC compiler before this.I havent tried on any
other computer yet.And what does ntvdm.exe exactly do?
Why does the CPU usage touch 100% and remain there until I
quit the compiler?CPU usage is not 100% when a normal DOS window
is open.
I am running Windows XP SP1 with all the latest patches installed
off Windows Update.
Waiting for some clarification,


::Pranav::
User avatar
pranav81
CD-RW Player
 
Posts: 1160
Joined: Thu Dec 05, 2002 6:57 am
Location: Solapur,Maharashtra,India

Postby BurninMan921 on Tue Jan 20, 2004 3:47 pm

Most likely reason: it's a DOS program! It's up to the OS to handling the time slicing, since the program can't give up it's time slice on it's own. And since it doesn't give up any time slices, it's basically using 100% of the CPU.

And wow, Turbo C++! I've still got that somewhere! I paid $100 for 3.0, I think they have that as a free download now.

I still like it's IDE! Wrote quite a few programs with it back in the day. Then I switched to Borland 4.5 (which, at the time, was better than 5.0).

Now that Watcom C++ is freeware, I just use that for the old stuff I need compiled. And DevC++ for Win32 programs, and of course, GCC for Linux :)
Soon to be proud user of Mandrake 10 (again!). SuSE 9 sucks!
User avatar
BurninMan921
CD-RW Player
 
Posts: 702
Joined: Fri Apr 25, 2003 12:51 am
Location: MFZ (Microsoft Free Zone)

Postby BurninMan921 on Tue Jan 20, 2004 3:56 pm

Oh yeah: ntvdm is the virtual machine manager, used for running old DOS programs.

A quick google search had this to say about it:

ntvdm - ntvdm.exe - Process Information

Process File: ntvdm or ntvdm.exe
Process Name: Windows 16-bit Virtual Machine
Description: Application provides environment for 16-bit process to execute on 32 bit platform.
Company: Microsoft Corp.
System Process: Yes
Security Risk ( Virus/Trojan/Worm/Adware/Spyware ): No
Common Errors: N/A

OK, guess it runs 16-bit Windows programs as well. My bad...
Soon to be proud user of Mandrake 10 (again!). SuSE 9 sucks!
User avatar
BurninMan921
CD-RW Player
 
Posts: 702
Joined: Fri Apr 25, 2003 12:51 am
Location: MFZ (Microsoft Free Zone)

Postby pranav81 on Wed Jan 21, 2004 12:02 pm

Dear BurninMan921,
Hi.Thanks for the fast and correct info.I admit,I just didn't think of googling it!!
Anyways,can you tell me the latest and easy to use free C++ compiler?I use version 3 because it is installed on each and every machine in my college.I have other C++ compiler from other some company,whose name I dont remember as I dont use it much because it has to be used in command line mode and I find it very crappy.
Thanks once again,
See ya later,


::Pranav::
User avatar
pranav81
CD-RW Player
 
Posts: 1160
Joined: Thu Dec 05, 2002 6:57 am
Location: Solapur,Maharashtra,India

Postby BurninMan921 on Wed Jan 21, 2004 12:48 pm

You're welcome!

Best free compiler: Dev C++.
Get it here: http://www.bloodshed.net/

You get a full IDE with it, too! The program is 100% Win32, however. You can't make 16-bit DOS programs with it, but can make 32-bit console programs, plus 32-bit Windows programs. It uses the (included+free) MinGW C++ compiler. A Pascal version is also available (with two different compilers).

Borland has the command line version of their 5.x compiler available for free, too. And I think TurboC++ is free now, too...but I'm not sure on that one.

If you really like command line compilers, DJGPP is a Win32 port of GCC (http://www.delorie.com/djgpp/).

And of course Watcom is free now: http://www.openwatcom.org/

And there's this, too: http://www.idiom.com/free-compilers/
It's a catalog of free compilers.

Another similar site: http://www.thefreecountry.com/compilers/

You've got LOT'S and LOT'S of choices! But I think Dev C++ is the best for the Windows platform. However, I still have Watcom because I have alot of old DOS32 programs that are written with Watcom and it's DOS4G/W DOS extender. DOS4G/W isn't free, but the OpenWatcom project has a link to a free replacement for it.
Soon to be proud user of Mandrake 10 (again!). SuSE 9 sucks!
User avatar
BurninMan921
CD-RW Player
 
Posts: 702
Joined: Fri Apr 25, 2003 12:51 am
Location: MFZ (Microsoft Free Zone)

Postby pranav81 on Fri Jan 23, 2004 2:01 am

Dear BurninMan921,
Hi.Thanks a lot for posting the links.I am downloading the Dev C++ 5 Beta 8.5.I would be happy if you tell me about other compiler that can create 16 bit DOS programs as some machines in my college have MS-DOS as their OS.And if all the Windows computers are accupied students are forced to use these "antique" machines.
I have Red Hat 9.2 installed,but I use it rarely.Windows XP is just too easy and I agree that I have become a slave to all easy going things.
See ya later,


::Pranav::
User avatar
pranav81
CD-RW Player
 
Posts: 1160
Joined: Thu Dec 05, 2002 6:57 am
Location: Solapur,Maharashtra,India

Postby BurninMan921 on Fri Jan 23, 2004 3:16 am

Watcom C++ can create programs for DOS, 32-Bit DOS, 16/32-Bit Windows, Netware, and OS/2...quite the well rounded compiler, IMHO! I'm not sure if their IDE will run under 16-bit, DOS, however. You can still use the DOS command line compiler.

For pure 16-Bit DOS with a great IDE...well, Turbo C++ was and is the best!
The free Borland 5.5 compiler can create DOS programs, but lacks the IDE.

One possible solution: use the free Borland compiler, and find a free editor that can launch the compiler and act as an IDE...I know their are several out there, including one made with the old D-Flat libarary.

For a ton of tools, compilers, and source-code, check out http://www.programmersheaven.com/

A quick look through the development tools are found Pacific C (http://www.htsoft.com/products/pacific/index.html), a free DOS-based compiler w/IDE. However, it is pure C, not C++.

Hope that helps! I'll let you know if I find any other free C/C++ compilers w/IDE's that run under DOS...
Soon to be proud user of Mandrake 10 (again!). SuSE 9 sucks!
User avatar
BurninMan921
CD-RW Player
 
Posts: 702
Joined: Fri Apr 25, 2003 12:51 am
Location: MFZ (Microsoft Free Zone)

Postby BurninMan921 on Fri Jan 23, 2004 3:20 am

Oh, if a C interpreter will do, there's Quincy: http://www.ddj.com/ftp/packages/quincy/

You'll need to create and username/pw to logon to that site.

Also http://www.freeprogrammingresources.com has alot of stuff on it...

As a side note, I DON'T like your new avatar! It's offfensive to Linux users :) :D
I gotta change mine sometime soon...I don't use Mandrake anymore!
Soon to be proud user of Mandrake 10 (again!). SuSE 9 sucks!
User avatar
BurninMan921
CD-RW Player
 
Posts: 702
Joined: Fri Apr 25, 2003 12:51 am
Location: MFZ (Microsoft Free Zone)

Postby CDRecorder on Fri Jan 23, 2004 3:52 am

BurninMan921 wrote:As a side note, I DON'T like your new avatar! It's offfensive to Linux users :) :D


LOL! :lol:

BurninMan921 wrote:I gotta change mine sometime soon...I don't use Mandrake anymore!


What distro are you using now?
CDRecorder
CD-RW Recorder
 
Posts: 2335
Joined: Tue Apr 01, 2003 9:28 pm

Postby BurninMan921 on Fri Jan 23, 2004 12:43 pm

I'm using SuSE 9 Pro. It's a lot faster, has SMP support (I have a P4 w/Hyperthreading), and unlike 9.2, has a TON of software (more than 9.1, too!).
Only downside: It hates my monitor, and can't go higher than 800x600! Argh!
Oh well...it's about time for a whole new machine, anyway...this thing is too SLOW.
Soon to be proud user of Mandrake 10 (again!). SuSE 9 sucks!
User avatar
BurninMan921
CD-RW Player
 
Posts: 702
Joined: Fri Apr 25, 2003 12:51 am
Location: MFZ (Microsoft Free Zone)

Postby pranav81 on Sat Jan 24, 2004 2:23 am

Dear BurninMan921,
Hi.Sorry for my new avatar.But believe me I searched and changed it only for you,and your love for Mr.William Gates Jr. :wink:
And thanks a lot for the replies regarding the compilers.I will check them out.I think I will stick to old trusty TC++ 3 for my 16-bit DOS needs for this moment.
Thanks a lot again,
See ya soon,


::Pranav::
User avatar
pranav81
CD-RW Player
 
Posts: 1160
Joined: Thu Dec 05, 2002 6:57 am
Location: Solapur,Maharashtra,India


Return to General Software Questions

Who is online

Users browsing this forum: No registered users and 0 guests

All Content is Copyright (c) 2001-2017 CDRLabs Inc.