Lost Password?


Go Back   CodeCall Programming Forum > Software Development > C and C++

C and C++ C and C++ forum for discussing all forms of C except for C#. These languages are powerful low level languages used for creating Operating Systems, Device Drivers, compilers and much more.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-07-2007, 08:38 PM
DevilsCharm's Avatar   
DevilsCharm DevilsCharm is offline
Programming God
 
Join Date: Jul 2006
Posts: 887
Rep Power: 14
DevilsCharm is on a distinguished road
Default Compiler Differences

How come there are so many different compiles for C++? Also, it seems like you need to code differently for different compilers. One time I wrote a code that worked on one compiler and not on another. Why is that? Wouldn't that cause a lot of problems when sharing programs?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 11-08-2007, 12:36 AM
v0id's Avatar   
v0id v0id is offline
Retired
 
Join Date: Apr 2007
Location: Denmark
Posts: 2,651
Last Blog:
CherryPy(thon)
Rep Power: 29
v0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of light
Send a message via MSN to v0id
Default

Different compilers use different ways to interpret and compile the sourcecode. It's like browser and their way to show the HTML visually for the user.
Normally, when you make bigger projects, or similar, you make a makefile for as many compilers as possible. Then the user can choose which of the makefiles to use, depending on the user's compiler.
__________________
05-03-2007 - 11-13-2008
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-08-2007, 12:37 PM
WingedPanther's Avatar   
WingedPanther WingedPanther is offline
Super Moderator
 
Join Date: Jul 2006
Age: 35
Posts: 3,405
Last Blog:
wxWidgets is NOT code ...
Rep Power: 37
WingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to behold
Default

In addition, C++ is not a fixed or simple object. C++ started as a private project in Bell Labs, then it became an ISO/ANSI standard. It has been through a few revisions since then. AFTER a standard is set, it is up to the various compiler creators to adjust the compiler to implement the various elements of the standard are implemented.

One thing that I ran into was when something that was legal C++ became illegal. I had an older compiler that would run the (newly) illegal code, and a newer one that wouldn't. When the standard changes, you have to be careful about updating the compiler, as it could break TONS of old code that used to be legal.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Programming is a branch of mathematics.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-10-2007, 07:11 PM
G_Morgan G_Morgan is offline
Guru
 
Join Date: Oct 2007
Age: 24
Posts: 506
Last Blog:
Just over the next hil...
Rep Power: 10
G_Morgan has a spectacular aura aboutG_Morgan has a spectacular aura aboutG_Morgan has a spectacular aura about
Default

C++ is huge. There was an article on Reddit today about how the C++ template language is Turing equivalent by accident*. There aren't any compilers that are fully compliant to the standard AFAIK but I might be wrong.

There aren't any fully compatible C99 compilers yet and C99 is a far less complex beast than C++.

*this simply means it can solve any finite algorithm that can be defined and thus is able to solve the problem set of any other language in existence.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ Compiler CPlusPlus C and C++ 5 08-20-2007 12:56 AM
asking for opensource compiler. fire exit General Programming 1 08-02-2007 08:46 AM
create e-book compiler pcdctr General Programming 8 05-23-2007 07:26 AM
which compiler n707 C and C++ 4 04-14-2007 01:28 PM
DoneEx XCell Compiler 1.5.3 Kernel Software Development Tools 0 10-01-2006 09:57 AM


All times are GMT -5. The time now is 09:11 PM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 100%


Complete - Celebrate!

Ads