Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3368: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3370: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3371: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3372: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
OrbWorks Community Forum • View topic - Code segment limit?
Page 1 of 1

PostPosted: Fri Apr 26, 2002 4:22 pm
by jstadolnik
PocketC has a code segment size limit of 65k. Does Orbforms support multi-segmentation of the code segment to break this limitation?

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm

PostPosted: Fri Apr 26, 2002 6:45 pm
by Admin
As for now, OrbForms Designer 1.0 has same code segment size limitation as PocketC.

PostPosted: Fri Apr 26, 2002 7:04 pm
by jstadolnik
Are there plans to remedy this limit the short term?

Also, is this limit documented anywhere? Users should really be informed of this upfront, the same goes for PocketC.

With the much higher cost of OrbForms, I suspect that any user encountering this application size limit would be pretty disappointed.

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm

PostPosted: Wed May 01, 2002 3:44 am
by dewey
It will be possible to add multi-segment support to OrbForms (it is extremely difficult to add to PocketC). This may be in the next major version. We will add a note about the limitation to the description page. Thanks!

PostPosted: Thu May 02, 2002 11:27 am
by Ringmaster
Excatly how significant is this limitation? I keep reading about it in the PocketC forums. Does the 65k refer to the size of the generated prc, or the amount of memory the program consumes while it's running? What happens if this limit is exceeded?

PostPosted: Thu May 02, 2002 7:39 pm
by jstadolnik
Each app has an internal "instruction code" resource which is currently limited to 65k. This is primarily due the fact that every PalmOS resource is limited to 65k in size. If you run out of instruction code space, you won't be able to make your app any larger. At that point, it's extremely difficult to further improve/update the app. What Orbforms and PocketC need is the ability to create multi-segment applications, which basically have multiple "instruction code" resources, rather than just one.

A number of PocketC users have written apps which have hit this limit (at least 5 I'm aware of). Pretty much your only options at that point are: 1) develop your own native library to off-load as much of your code as you can, or 2) switch to another development platform.

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm

PostPosted: Fri May 03, 2002 12:14 pm
by awschwab
Joe:

How can we see the size of this code resource? For instance, RsrcEdit shows there are a bunch of PCpc resources, and a few code resources that seem too small to be the program in a PocketC prc. Are each of the code resources limited to 64K, and is only one of these my actual program? By using resource forms rather than dynamic ones, am I moving code to a different category that allows my whole program to be larger?

PostPosted: Fri May 03, 2002 12:55 pm
by jstadolnik
Yes, you can see the code segment size with pocketc using RsrcEdit. For .prc apps, the code segment is PCpc 1001 one, and for .pdb apps, it's record number zero.

I'm not sure what the code resource name is for orbforms, but it's likely similiar.

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
By using resource forms rather than dynamic ones, am I moving code to a different category that allows my whole program to be larger?
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Yes, by using resource forms you are generally off-loading code from the instruction code segment.

OrbForms uses resource forms.

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm