does registered version run faster?

Discuss PocketC for CE (including Desktop Edition)

Postby oliverhuang on Sat Feb 01, 2003 12:37 pm


I just downloaded demo version of PocketC/CE to evaluate.

Writing a simple test code to receive serial input at 57600baud and print it out on the console, the printing process on the console is extremely slow, but no characters were dropped.

Another test of printing all the partial sum of 1 to 3000, the printing on the console is also very slow.

I'm wondering if the demo version is slowed deliberately? Will registered version run faster?


Posts: 1
Joined: Sat Feb 01, 2003 12:26 pm
Location: Taiwan

Postby wolfgang on Sat Feb 01, 2003 8:07 pm


no, that's the speed you will get. The console output is excrciatingly slow. To speed up things, I'd write into a text file instead of the console - this will make it MUCH faster. PocketC is not breathtakingly fast because it does not produce machine code - instead it creates a bytecode that is interpreted by the runtime module, which means there is a huge amount of overhead (back in the 80's this was called an "interpreted language". Today people call it "code running on a virtual machine" because it sounds fancier, but it really is the same thing).


Composing music on the PocketPC! -
Composing music on the PocketPC! -
Posts: 281
Joined: Tue Dec 12, 2000 4:22 am
Location: USA

Postby RykThekreator on Wed Mar 05, 2003 11:01 pm

Hey Wolfgang. :)

Question: Once the program written (That's run, interpretedly) is compiled, will it then run faster in PocketC? (This question applies to both Versions 2 and 3.)

Thanks for your help. :)

Posts: 1
Joined: Wed Mar 05, 2003 12:39 am
Location: Canada

Postby KOU on Thu Mar 06, 2003 4:05 am


PocketC is a "compiler."
It is not a "interpreter."

This happens when you tap "Run":
Compile it and make "FILENAME".app
Execute it using PocketC Runtime.

This happens when you tap "Build":
Compile it and make "FILENAME".app

So, actually there is no difference in speed.

It is different from old BASIC languages that had tremendeous speed difference between compiled one and interpreter (compiled on the fly) one.

Posts: 92
Joined: Mon Mar 18, 2002 8:04 pm
Location: USA

Return to PocketC for CE

Who is online

Users browsing this forum: No registered users and 3 guests