TC Compiled DOS program and VC compile the Win32 console program similarities and differences _c language

Source: Internet
Author: User
Tags win32
They are essentially different: 1: One is a 16 DOS program, and one is a standard 32 Windows application. The former is still subject to 64KB memory segmentation constraints, The latter is carefree with the 4GB memory address space. They are already running on different operating systems. Don't confuse them. DOS programs can run on Windows because there are NTVDM. And you put the VC generated by the console program in DOS will only get!? This program cannot is run in DOS mode.2: If you are writing with a standard library, the code should not be much different. But the method of calling the library at execution time is not the same. The former simulates an execution environment through an API, which is a direct call to the WIN32 API. 3: TC inside the program is really can call the interrupt, but this interrupt is not directly executed. It's NTVDM. In the NT world. Ring3 is unlikely to invoke the interrupted. 4:VC6 (earlier version does not know) can not write a DOS program, can only write a console program, note, This is simply a WIN32 program that uses only the standard input output of the console. The console program can also pop-up windows, there can be a message loop, the window program can still have a console.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.