PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Pocket Visual C++

Moose or Chuck · 27 May 2001, 10:25 UTC
Hey, I really need Visual C++ for the PocketPC: MIPS CASIO E-125. If anyone knows of a program like MS VisualC++ that has the compiler etc built in that would be helpful, but any program(s) that can write and build C++ code on a PocketPC would be really helpful. Thanks in advance.
Moose or Chuck · 28 May 2001, 12:36 UTC
hmmm.. i don't recall seeing a program to write/compile code for C++ on a ppc, i know that there is NS Basic and some eothers
Chuck's right, there's no way to generate native binaries on a CE device at this time. Another alternative is Pocket C. It generates a pseudo-binary that is interpreted in a run-time environment, sorta like java. Supposedly an interpreter exists for Big Windows, which would make your apps a bit more portable.

Dan East
Moose or Chuck · 29 May 2001, 14:03 UTC
Do you, Dan, think that Microsoft or Borland will ever create a simple compiler for a PocketPC anytime in the near future? Maybe we should start a petition hosted by PocketMatrix. Everyone that cared could sign their names and emails so that we could eventually email it to Microsoft to try and start a highly needed application.
I'm curious as to why you think this is a "highly needed" application?  Is it too much to ask someone who is doing development work on a Pocket PC to own a PC?


Moose or Chuck · 29 May 2001, 16:03 UTC
Maybe I've started programming and want to be able to keep doing so while away from home. I have lots of free time at school and I go on vacations, especially during the upcoming summer season. I just thought that it would be very useful to me, so I could take along a programming book and actually use what I learn.
I don't know if that would help (petitioning MS, etc). Part of the problem is that there are 3 mainstream processors used by CE, so you would either have to generate only applications for a single type of processor (of course the type of processor for the device you're using), or you would have to have 3 compilers, 3 assemblers, 3 linkers, and 3 complete sets of libraries (make that 6 if you include debugging support). I've actually thought about this a bit, and there exists GPL source code for several very good compilers. I have not studied compiler design (at least formally), but it should not be too difficult to modify a compiler for use with a different type of processor. A compiler that generates highly optimized code is another issue, and is completely processor specific, but I think that for most purposes the idea is to generate solid, bug free applications on the go. So just bread-and-butter compilation would do. Again, the problem is that there are 3 different processors. Each would have to be created from scratch, and would be a completely separate project. If you built each compiler for each type of processor (ie, so I could build a MIPS program on my iPaq), you would have 9 different compilers. :) Again, I think you and I are thinking along the same lines here, so creating an app that will run on the device it was compiled on is that main idea. I'm thinking more along the lines of prototyping and minimizing down-time on the go, more than "I'm going to turn off my finely tuned Windows 2000 developement machine and sit in front of my Pocket PC and write a game from scratch".
In case you're not familiar with C and how it is turned into an executable, there are basically 3 steps (three separate programs) involved. Some development tools may combine these steps into less than 3 standalone tools, and others break it down into even more pieces. But generally the three applications are:
C (and/or C++) Compiler: Converts the C source code into assembly source code for the target type of processor.
Assembler: Generates a hunk of machine language code (an Object file) from an assembly source file.
Linker: Combines all the Object files of the project, with all the needed external LIB libaries (like stdio, the Windows API, etc), and generates the end output file (An Executable, DLL, or LIB file).

So when you talk about creating a C compiler, you're talking about creating all 3 of the applications above to support a single type of CE device. There could actually be a 4th component, which would be a gui development environment. You could of course use Pocket Word for code editing, but it would be much better to at least have a syntax coloring, smart-tabbing C editor that would automically launch the compiler, assembler, etc, like the Make tool.
I think I stayed under a thousand words! ;)

Dan East
Moose or Chuck · 29 May 2001, 21:10 UTC
well, moose until then, why not write the code in word, then just test when uu return home. I would find that the easiest. means u'd have to debug when u got home but whaa whaa don't cry.
It looks like some degree of work was done to modify gcc to build for MIPS Windows CE devices:
http://www.innonet.at/~wisi/wincegcc.html
He gave up in August of 2000.

Dan East
Moose or Chuck · 30 May 2001, 20:59 UTC
well moose, there is your project, u must port GCC over, and then figure out a way to squeeze out the crap from the SDK to make it fit on a ppc.