How C Compilers work?
822024
1). A compiler "compiles" a code so that the host Operating System can understand. It's generally speaking. The compiler doesn't interact directly with the hardware, this is the job for the Operating System!\n2). Yes. You can download as many compilers as you prefer. A compiler is a software which interacts with the operating system, just like any other..\n3). This is difficult to answer... The starting point for creating compilers are formal languages and theory of automata.. Then comes the implementation... \n4). C/C++ is the industry standard, so of course many software are written in this language (but not only in this one...). Libraries for grafic function include OpenGL (Glut,FreeGlut and so on), DirectX... Renedering software is also being used in the gaming industry. (let's not foret about Artficial Intelligence)\n5). You can update a compiler by downloading the improved version or adding extra libraries to it. You can even create your own libraries if you prefer to start from scratch.\n6). Unix for example is entirelly based on C language! C language doesn't support OOP (Object Orientation Programming), that's one of the reason C++ was created. It's hard to say in what language windows is written for example since it's closed source...
169151
int\nmain (void)\n{\nfor(i=0;i<10;i++){\nprintf("some thing output here %d", i)\n}\n}
810227
Compilers. Of course, there is the simple matter of learning the programming language.\n\nHeres a free C++ compiler:\nhttp://www.bloodshed.net/dev/devcpp.html
460669
http://developer.apple.com/tools/gcc_overview.html\n\nShort of that just literally go to \n\nhttp://developer.apple.com they have a lot of info there :)
37555
You may use any editor (VI, notepad, Visual Studio Express, Programmer's Editor, ...) to create source files (c/C++ files containing instructions to be compiled). \nDepending on the language of choice (C and C++ are different languages) name your file accordingly (c for the C Language, cpp, C, c++ or cxx for C++).\nThen compile, link (generally compilers do both things with a single command, you may use GCC for any platform, or Visual C++ Express from Microsoft for Windows -which is much easier to use) and run (just type the name of the program at the command line).\n\nSample. Write:\n\n#include <stdio.h>\nint Main(int argc, char* argv[])\n{\n   puts("Hello World!");\n   return 0;\n}\n\nthen save as "hello.cpp", \n\nany platform: compile with "gcc hello.cpp -ohello" and type "hello"\nWindows: if using MS Visual C++ Express, then just press F5
963901
wat does your program doese also can you state the name of the compiler you are using
225626
A compiler (you may know) is the program that translates your C++ code into the language of ones and zeros that the computer understands.  As such, it does not have to look spiffy.  Ugly is okay.\n\nThere are some differences among compilers as to exactly how you use them, but the general idea goes like this.  You write your C++ program in an editor and save it to disk.  You tell the compiler where to find the program and it reads it and tries to translate it into machine language.  It fails because no one can write a perfect program the first time.  It gives you a list of errors it found.  You patiently go through the list and correct the errors as best you can, then try to compile the program again.  You keep repeating editing (debugging) and compiling until the program compiles.  Then, you find out that it doesn't do what you meant for it to do.  That is because there are still errors in the program.  You find the errors, correct them, and compile again.  You keep doing this over and over, and eventually, the program works the way you want it.\n\nYour first programs should be very, very, very simple.  I hope your book guides you in this direction.  The first program should do something like print "hello."  Once you get to that point you can enhance it.  It might ask you to input something, then output that.  You keep making more and more complicated programs, and eventually, you'll be able to program interesting stuff.\n\nGood luck!!\n\n=====================\n\nI searched google for open source compilers and the two that came out on top are linked below.  Maybe you would like one of those better.
963773
It is done in C/C++. U can check that out in any of the windows programming books.
912485
there is no "code" for it. The compiler evaluates it at the compile time, and replaces with the actual number.\nThere is no way to write a function that would did that at run time, because at run time, there is not type information available - only addresses of variables not their sizes
195623
how to write a compiler huh? wow. you must be of some great renown. first of all, you should know about exe code. for example it starts with some labels of the program, and an executable lump of code. youll need to know how to denote a loop or if statement by means of exe code. but trying to write a compiler is tougher than even writing the windows. cos the compiler must be compatible with windows and it means you need to know many things about how windows handles things. an example: the simplest visual basic application still requires 20 kb hard disk space. which means the compiler is generating that automatically. things generated are runtime error labels, things specific to windows, pentium pro favors and so on. it is generally a teamwork. not a let alone combat.
150403
Microsoft .Net Framework SDK has a C++ compiler. It is available in 32 and 64 bit editions.\nIts free.
1130146
C program? Do you mean the C language, or the C Drive?
848075
I know of at least two, that I would recommend, apart from what others have said.  I am told the C++ compiler will work with C programs.\n\nBorland Free C++ Compiler\nhttp://www.borland.com/downloads/downloa...\nArticle on Borland Free C++ Compiler\nhttp://community.borland.com/article/0,1410,20633,00.html\n\nBorland Turbo C++ (IDE)\nhttp://www.turboexplorer.com/cpp...
676530
In c++\n\n#include <iostream.h>\n\nint main(int argc, char* argv[])\n{\n printf("Hello World!&#92;n");\n return 0;\n}
83035
#define __TEST__\n\n#include <stdio.h>\n\n#ifdef __TEST__\n#include <conio.h>\n#include <stdlib.h>\n#endif\n#define STACKSIZE 64\n\n\nint stack[STACKSIZE];\nstatic int stack_ptr=0;\n\nvoid overflow_test( int pos )\n{\nif( pos >= STACKSIZE )\n{\nputs( "Stack overflow!&#92;n" );\nexit(1);\n}\n}\n\nvoid underflow_test( int pos )\n{\nif( pos < 0 )\n{\nputs( "Stack underflow!&#92;n" );\nexit(1);\n}\n}\n\nvoid push( int value )\n{\noverflow_test( stack_ptr+1 );\nstack[stack_ptr++] = value;\n}\n\nint pop( void )\n{\nunderflow_test( --stack_ptr );\nreturn stack[stack_ptr];\n}\n\n#ifdef __TEST__\n\nvoid wait4keypress( void )\n{\nwhile( !kbhit())\n;\n}\n\nint main( void )\n{\natexit(wait4keypress); \npush(1);\npush(2);\npush(3);\nprintf( "%d&#92;n", pop());\nprintf( "%d&#92;n", pop());\nprintf( "%d&#92;n", pop());\n/* must cause stack underflow */\nprintf( "%d&#92;n", pop());\nreturn 0;\n}\n\n#endif  /* __TEST__ */
1122588
a compiler is a program that is used to run applications or programs...like turbo c or other programming languages, it has a compiler to be able to run the program that you have written in high level languages. what thing are you trying to install on your computer ??? i dont know how to make libraries in compilers.
28385
Borland's freely available compiler :\nhttp://community.borland.com/cgi-bin/surveys/web_download_survey.cgi?sid=33\n\nDigital Mars C++ \nhttp://www.digitalmars.com/download/freecompiler.html\n\n\nGNU Compiler Collection, including the g++ compiler :\nhttp://gcc.gnu.org/\n\nMicrosoft's freely available .NET C++ compiler \nhttp://msdn.microsoft.com/netframework/downloads/updates/default.aspx\n\nBloodshed's Dev-C++ compiler \nhttp://www.bloodshed.net/devcpp.html\n\nAll of these are free versions. The best is Bloodshed's Dev.