Thread: Compiler questions

  1. #1
    DvdHeijden
    Guest

    Compiler questions

    I'd like to ask a few questions about compilers. I use Visual C++ 2005 Express Beta.
    1) Can you use a different compiler with VC++2005Eb or do you have to use an other program then? Like when I want to use a 'not console' compiler, can I sill use VC++2005Eb with it?
    2) Are there compilers to make programs for mobile phones, handhelds, etc. too? Not that I'm ready to make that kind of stuff yet, but I just want to know.
    3) If the answer to Q#2 is 'yes', where can you download(/buy?) them?
    4) What's the best compiler to start with after using the standard compiler given with VC++2005Eb, to make simple games or something.

    DvdHeijden

  2. #2
    ---
    Join Date
    May 2004
    Posts
    1,379
    2) It's called J2ME and it is Java.
    3) As far as I know it is free http://java.sun.com]

    Questions 1 and 4 I'm not sure what you mean.

  3. #3
    Handy Andy andyhunter's Avatar
    Join Date
    Dec 2004
    Posts
    540
    1) 'non console' compiler? You can make windows programs with any compiler these days. Just include the windows.h header and use the API. It is not a compiler issue.

    2)Yes

    3)Microsoft has compilers for Windows CE, the OS that runs on pocket pcs. For palm apps there use to be a german company that offered a compiler and development environment for free, I'll see if I have that link. Codewarrior also provides and add in to allow you to compile for palm.

    4) game programming, like windows programming is based on the libraries you include not the compiler. Now there are arguments over optimization and such, but basically if you want to get into graphics learn about DirectX or OpenGL.
    i don't think most standard compilers support programmers with more than 4 red boxes - Misplaced

    It is my sacred duity to stand in the path of the flood of ignorance and blatant stupidity... - quzah

    Such pointless tricks ceased to be interesting or useful when we came down from the trees and started using higher level languages. - Salem

  4. #4
    DvdHeijden
    Guest
    Okay, thanks for answering. But how can you define which compiler you want to use? Or is the compiler built-in in the program you write it in? I don't know much about C++ yet...

    DvdHeijden

  5. #5
    ---
    Join Date
    May 2004
    Posts
    1,379
    The "program" you speak of is called an IDE (Integrated Development Environment). I don't think you always need one (you can always use notepad in windows), but if a compiler comes with an IDE then it's recommended that you use it because that IDE will make good use of all the functionality of the compiler, where a generic IDE would just be generic

    But the answer is, yes you can change your IDE if you want.

  6. #6
    DvdHeijden
    Guest
    Ok, thanks, but do you know how to do it in Visual C++ 2005 Express Beta?

    DvdHeijden

  7. #7
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    1. Visual C++ beta is an IDE, and it can make either console or Windows programs. (I don't have it so I can't tell you how to configure it.)

    2 & 3. It all depends on the platform (the hardware & operating system).

    You need a compiler for that particular platform. For embedded systems, you tyicaly use a cross-compiler. A cross compiler runs on one platform (usually a PC) and generates code for another, say a Motorola microcontroller.

    Typically, you get a compiler from the CPU/microcontroller manufacturer, or from a 3rd party compiler-company that supports that particular platform. There is probably a C or C++ compiler available for every avaliable CPU/Microcontroller.

    If the device has an operating system, you should be able to get a compiler from the OS maker. Most embedded devices run without an operating system, or use a special-purpose OS such as VxWorks.

    If the device is running WinCE, then you might be able to download and run a program compiled on a WinCE compiler. That is, if the device manufacturer has set-up the OS to allow user programs.

    Most embedded devices cannot run a user-program! Where I work, we make several microcontroller based products. Most of them run a single-purpose program without an operating system. We write and compile the programs on a PC. We load the program into a flash chip (or EPROM) with a flash-EPROM programmer-device connected to one of the PC's ports. Then, the programmed chip is plugged-into a socket on the PC board. If you wanted to run your own program, you'd have to program and install your own flash/EPROM chip.

    If the device is JAVA enabled, you can run a JAVA program.

    4. Visual C++ has lot's of graphics & sound built-in. First learn standard (text based) ANSI/ISO C++. Then learn Windows programming. If the standard WinAPI graphics are not good enough for you, you can look into ActiveX, OpenGL, or other game libraries.
    Last edited by DougDbug; 01-17-2005 at 03:05 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem building Quake source
    By Silvercord in forum Game Programming
    Replies: 16
    Last Post: 07-11-2010, 09:13 AM
  2. questions....so many questions about random numbers....
    By face_master in forum C++ Programming
    Replies: 2
    Last Post: 07-30-2009, 08:47 AM
  3. Several Questions, main one is about protected memory
    By Tron 9000 in forum C Programming
    Replies: 3
    Last Post: 06-02-2005, 07:42 AM
  4. C Compiler
    By SAMSEIED in forum C Programming
    Replies: 5
    Last Post: 06-06-2002, 05:44 PM
  5. questions questions questions.....
    By mfc2themax in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 08-14-2001, 07:22 AM