Thread: How to run C++ program in PDA

  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    25

    How to run C++ program in PDA

    As title.

    Should I install any C++ complier in PDA?

  2. #2
    Registered User
    Join Date
    Dec 2005
    Posts
    155
    By "run" do you mean make? Like on the go "Hey I could put that in my program (Jim looks at his PDA and puts some code in a little program and hits run) HEY! it works!!!" Yes you would need a complier in the PDA. If you mean just putting C++ programs in the PDA, yes that would just work too, just compile them 1st, then put them on the PDA.

    Warning: Some PDA cant do what you want to do, check to see if your PDA can even do this.

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    I suppose we could play the game of "guess which PDA" you have, along side the "guess which OS" your desktop machine is using.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  4. #4
    Registered User
    Join Date
    Nov 2006
    Posts
    25
    Quote Originally Posted by Salem View Post
    I suppose we could play the game of "guess which PDA" you have, along side the "guess which OS" your desktop machine is using.
    The PDA is hp and OS is window XP.

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    So I'm guessing it's an HP-IPAQ, running Windows-CE then.

    Normally, you run the development tools on your desktop machine, then copy the final program to the hand held.
    http://www.microsoft.com/windowsmobi...s/default.mspx
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  6. #6
    For Narnia! Sentral's Avatar
    Join Date
    May 2005
    Location
    Narnia
    Posts
    719
    You can use wxWidgets to create applications.
    Videogame Memories!
    A site dedicated to keeping videogame memories alive!

    http://www.videogamememories.com/
    Share your experiences with us now!

    "We will game forever!"

  7. #7
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    Should I install any C++ complier in PDA?
    On this type of system, the compiler itself doesn't usually run on the PDA.

    Usually, this is done on what's called a cross-compiler. The compiler runs on one machine (i.e. a PC), and the compiled code runs on a different machine (i.e. on your PDA).

    This is the same procedure that's used to write firmware for an embedded system. The code in your mobile phone or DVD player wasn't written on the device. It was probably written on a PC, and debugged on a computer connected to the device.

    This does require a compiler that's specific to your target platform, and your development system. (That's why people have asked "What PDA?")

    With most "embedded" systems, you can't even get a compiler! You could get a compiler for the particular processor (if you know what it is) but there are usually unknown hardware details that would prevent you from using it. And, it might require some special hardware (and "insider" knowledge) just to make a connection between the computer and the device... For example, there is probably no USB port (or other common port) on your DVD player for you to upload your own software/firmware.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Program Plan
    By Programmer_P in forum C++ Programming
    Replies: 0
    Last Post: 05-11-2009, 01:42 AM
  2. Client-server system with input from separate program
    By robot-ic in forum Networking/Device Communication
    Replies: 3
    Last Post: 01-16-2009, 03:30 PM
  3. Re-doing a C program to run in Win2000 or XP
    By fifi in forum C Programming
    Replies: 5
    Last Post: 08-17-2007, 05:32 PM
  4. Replies: 3
    Last Post: 07-11-2005, 03:07 AM
  5. plz help me run this program!!!
    By galmca in forum C Programming
    Replies: 8
    Last Post: 02-01-2005, 01:00 PM