Search   Articles   Dev Forums   Personalize   Favorites   Member Login   ASP.Net Hosting
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Sunday, November 23, 2008

Dev Articles
Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 
FREE 12 month online training for ASP.NET & MS Expression Studio and a Free copy of MS Expression Web with Windows Server Purchase

Home > Search > Articles & Samples > Visual C++ .NET > Compiler
Search:
What's New - What's Hot


Integer Overflow and operator::new        
Total Hits: 126  |  Today: 0 Author: michael_HOWARD       Rating:  
Read Reviews | Write Review |   Your Rating: 

The C++ compiler in Visual Studio 2005 automatically generates defensive code to mitigate this potential vulnerability. As you can see (assuming you can read assembly code!) the multiply occurs (mul edx) and then the CL register is set or not set depending on the value if the overflow flag. Now here’s the funky part, ECX will end up being 0x00000000 or 0xFFFFFFFF, and because of the next operation (or ecx) the ECX register will either be 0xFFFFFFFF or the value held in EAX, which is result of th...

How a C++ compiler implements exception handling        
Total Hits: 17  |  Today: 0 Author: Vishal Kochhar       Rating:  
Read Reviews | Write Review |   Your Rating: 

One of the revolutionary features of C++ over traditional languages is its support for exception handling. It provides a very good alternative to traditional techniques of error handling which are often inadequate and error-prone. The clear separation between the normal code and the error handling code makes programs very neat and maintainable. This article discusses what it takes to implement exception handling by the compiler. General understanding of the exception handling mechanism and its s...

Present Imperfect        
Total Hits: 42  |  Today: 0 Author: Bobby Schmidt       Rating:  
Read Reviews | Write Review |   Your Rating: 

I continue the theme of the previous column: standard-conformance features missing in Microsoft® Visual C++® .NET. Since we last visited, I've added one new compiler and updated another, Greg Comeau has graciously provided me a review/writer's copy of his C/C++ compiler for Microsoft® Windows®. As I intimated last time, Greg was close to releasing a compiler incorporating EDG's technology to support export. He believes the compiler is now days away from release. (The late beta I'm using does han...

Building Managed Resources from Win32 Resources        
Total Hits: 67  |  Today: 0 Author: Grant Bolitho       Rating:  
Read Reviews | Write Review |   Your Rating: 

Resources within .NET — based applications are stored in a different format and accessed in a different manner than a traditional Windows application. This article examines a technique and supplies a command line utility that can be used to convert resources in the Win32 Resource Compiler script format to a .NET resource file and then build it into a managed assembly with embedded resources. In traditional Windows applications, resources are often embedded into Win32 DLLs using the Resource Comp...

An introduction to libsig c++ using the Microsoft Visual Studio compiler        
Total Hits: 12  |  Today: 0 Author: roel_       Rating:  
Read Reviews | Write Review |   Your Rating: 

First, a common design problem in event-driven programming in C++ will be identified, after which several possible solutions to this problem are examined, listing their advantages and disadvantages. An explanation of the signal/slot mechanism is presented, along with an argumentation on why it is in many cases to be preferred over the alternatives. An implementation of the mechanism, the libsigc++ library, is proposed. Then, a small sample program with the most basic principles of signal/slot pr...

Building a simple C++ script compiler from Scintilla and CINT.        
Total Hits: 195  |  Today: 0 Author: Robert Umbehant.       Rating:  
Read Reviews | Write Review |   Your Rating: 

I ran across two Open Source projects recently. CINT, a C/C++ script engine, and Scintilla, a multi-language editor with syntax highlighting among other features. So the possibilities here are obvious. A simple application that would allow the rapid entry, execution and debugging of C/C++ scripts. What a handy tool for a developer such as myself. I would imagine this would also be of interest to anyone learning the C/C++ language....

cl.exe Episode XIII: Attack of the Standards        
Total Hits: 51  |  Today: 0 Author: Bobby Schmidt       Rating:  
Read Reviews | Write Review |   Your Rating: 

Given the epoch between releases of Microsoft® Visual C++® 6.0 and Visual C++ .NET, I reckoned the new compiler would feature a passel of new standard-conformant fixes and other related changes. Also figuring that the Visual C++ .NET documentation would completely detail these many changes, I had planned to select representative or piquant items from that detailed list for expounding here....

Power Your App with the Programming Model and Compiler Optimizations of Visual C++        
Total Hits: 90  |  Today: 0 Author: Kang Su Gatlin       Rating:  
Read Reviews | Write Review |   Your Rating: 

While there is no question that the Microsoft® .NET Framework improves developer productivity, many people have some concern regarding the performance of managed code. The new version of Visual C++® will allow you to set aside these fears. For Visual Studio® 2005, the C++ syntax itself has been greatly improved to make it faster to write. In addition, a flexible language framework is provided for interacting with the common language runtime (CLR) to write high-performance programs. Many programm...

Building a simple C++ script compiler from Scintilla and CINT        
Total Hits: 19  |  Today: 0 Author: Robert Umbehant       Rating:  
Read Reviews | Write Review |   Your Rating: 

I ran across two Open Source projects recently. CINT, a C/C++ script engine, and Scintilla, a multi-language editor with syntax highlighting among other features.

So the possibilities here are obvious. A simple application that would allow the rapid entry, execution and debugging of C/C++ scripts. What a handy tool for a developer such as myself. I would imagine this would also be of interest to anyone learning the C/C++ language....

Modern Language Features Enhance the Visual C++ .NET Compiler        
Total Hits: 17  |  Today: 0 Author: Stanley B. Lippman       Rating:  
Read Reviews | Write Review |   Your Rating: 

Programmers who have been using C++ for years are wondering where their language is headed with the advent of C# and Microsoft .NET. This article sketches a roadmap of C++ as it is used in the world of .NET. In .NET there are two approaches to C++ code: managed and unmanaged. Unmanaged code doesn't use the CLR, while managed code involves the use of Managed Extensions for C++. This discussion explains both approaches....

Language Enhancements and Simplified GUI Development Enrich Your C++ Apps        
Total Hits: 92  |  Today: 0 Author: Richard Grimes       Rating:  
Read Reviews | Write Review |   Your Rating: 

Managed Extensions for C++ is the preferred programming language for developing Windows Services. Visual Studio .NET 2003 introduces C++ support for designers, providing all the RAD facilities that were available to other languages for developing forms, controls, components, and DataSets. Furthermore, support has been added for the creation of verifiable assemblies with C++. In this article, the author reviews these additions as well as the new compiler and linker switches, demonstrating how C++...

Designing a Compiler        
Total Hits: 9  |  Today: 0 Author: masaniparesh       Rating:  
Read Reviews | Write Review |   Your Rating: 

This is my project during my bechlor degree program. I have designed the partial C-Compiler. Though it is C-compiler the concept of all the compilers will be almost same. I have used LEX and YACC tools to generate the Lexical and Syntax analysis. I did the code optimized face as well. And I have generated final code in X86 machine and used MASM assembler to run the code. It was very successful....

Compiling C++ code at runtime        
Total Hits: 12  |  Today: 0 Author: sunnyim4       Rating:  
Read Reviews | Write Review |   Your Rating: 

The C programming-language draws a line between compile-time and run-time: you compile your program to convert it into machine-code, which can then be run. C++ crosses this line via template-metaprogramming techniques that use the compiler to “run” meta-programs. Dynamic programming languages (e.g. Python) cross the line in the other direction by allowing runtime generation of functions (“higher level functions”). The following is a proof-of-concept showing higher-level functions can be implemen...

Compiler in action- C/C++ to Machine        
Total Hits: 10  |  Today: 0 Author: Maruf Maniruzzaman       Rating:  
Read Reviews | Write Review |   Your Rating: 

What happens when I give my C/C++ code to a compiler? It generates machine code. But I want to know what machine code it generates really. I use the compiler that comes with Visual C++ 2008. Other versions should be similar if not same. With Visual Studio we can produce assembly language output with following settings: Project Property Pages Configuration Properties C++ Output Files Assembler Output: Assembly With Source Code (/FAs) The compiler generates assembly code and output with corresp...

A Utility to Clean Up Compiler Temp Files        
Total Hits: 14  |  Today: 1 Author: Michael Dunn       Rating:  
Read Reviews | Write Review |   Your Rating: 

Recently at work, I was talking with a coworker about cool little utilities that we wished we had. He mentioned an idea for a shell extension that would remove all intermediate compiler files (such as *.obj) from a directory (and recurse subdirectories, naturally). That sounded pretty neat, and since he was in the middle of writing up a different cool program, I decided to get cracking on the clean-up utility and see what I could do. I came up with this little app, DirClean....

C to Assembly Cross-compiler        
Total Hits: 12  |  Today: 0 Author: M Owais Khan       Rating:  
Read Reviews | Write Review |   Your Rating: 

C2ASM is a cross compiler and it converts "C" code into "ASSEMBLY" code. It uses a subset of "C" language. It is written as a console mode application. If you want to read more about C2ASM, download the documentation provided with the article in an RTF file. You may also download the source code and also sample input programs in "C".

It uses no Object Code Optimizations or Register Allocation Algorithms. It's a very simple cross compiler. I made it as my semester project for learning purp...

Modern Language Features Enhance the Visual C++ .NET Compiler        
Total Hits: 38  |  Today: 0 Author: Stanley B. Lippman       Rating:  
Read Reviews | Write Review |   Your Rating: 

Programmers who have been using C++ for years are wondering where their language is headed with the advent of C# and Microsoft .NET. This article sketches a roadmap of C++ as it is used in the world of .NET. In .NET there are two approaches to C++ code: managed and unmanaged. Unmanaged code doesn't use the CLR, while managed code involves the use of Managed Extensions for C++. This discussion explains both approaches....

Write Faster Code with the Modern Language Features of Visual C++ 2005        
Total Hits: 153  |  Today: 0 Author: Stephen Toub       Rating:  
Read Reviews | Write Review |   Your Rating: 

The introduction of the Visual Studio® .NET 2003 C++ compiler was a mouthwatering experience for enthusiasts of the C++ language. With 98 percent conformance to the ISO C++ standard, Visual C++® .NET 2003 was truer to these standards than any previous version and incorporated language support for features such as partial template specialization. It also included enhanced buffer security checks and improved compiler diagnostics. C++ developers joined the ranks of developers using C# and Visual Ba...



DevASP.Net - Disclaimer - Privacy
Copyright © 2008 DevASP.net