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 - CControls functions question

CControls functions question

Discuss PocketC for Palm OS (including Desktop Edition)

Postby djeaux on Thu Feb 15, 2001 5:12 pm

Before compiling an application that uses CControls, is it possible to edit out CControls functions that aren't used in the application from the CControls memos?

For example, my application doesn't use Cdestroy. Could the Cdestroy function be removed from the CControls memo prior to compiling? If so, would this possibly reduce the size of my "compiled" PDB file?

Thanks,
djeaux
--
In the Palm of some fool's hand.
- Bob Dylan
djeaux
 
Posts: 37
Joined: Tue Feb 13, 2001 6:36 pm
Location: USA

Postby Vilmos on Thu Feb 15, 2001 6:08 pm

You can certainly remove parts of CControls that you don't use. You have to be careful as a lot of the internal functions call others. I had considered this as well when I wasn't using most of the gui items. In the end it wasn't wasting enough space for me to worry about. The CControls source is fairly large looking, but it compiles down to around 4K.

Vilmos
Vilmos
 
Posts: 174
Joined: Tue Dec 05, 2000 6:13 pm
Location: Canada

Postby djeaux on Fri Feb 16, 2001 8:17 pm

Kinda what I figured -- possible but an insignificant difference...

BTW, is there any documentation showing cross-function calls within CControls? Or is it just trial-and-error?

djeaux

--
In the Palm of some fool's hand.
- Bob Dylan
--
In the Palm of some fool's hand.
- Bob Dylan
djeaux
 
Posts: 37
Joined: Tue Feb 13, 2001 6:36 pm
Location: USA

Postby Power on Sat Feb 17, 2001 11:25 am

it's not trial and error... we can have that as an exact science... since most functions call on parts of the codes. for example... you dont use buttons... then the Cbutton can bre removed... plus a part of the code on the CEvent that checks for button press and the button redraw can also be remove...
Power
 
Posts: 31
Joined: Sun Feb 04, 2001 8:51 am
Location: Philippines

Postby stephane on Mon Feb 19, 2001 3:45 am

Hey Power, I think what djeaux meant by "trial and error" was that he isn't willing to sift through all the details of the source code <img src=icon_smile.gif border=0 align=middle> and I don't blame him <img src=icon_smile_big.gif border=0 align=middle>

I'll see if I can compile a function dependency list, within the next few days. There may be others who wish to "optimize" the size of the Ccontrols lib..


St?ɬ©phane
Stéphane
stephane
 
Posts: 71
Joined: Fri Jan 12, 2001 3:16 am
Location: Canada

Postby Power on Mon Feb 19, 2001 4:28 am

maybe we could integrate that to CEditor to generate a seperate CControls files for the all the dependecies... i dont know how much code space can be saved but such... but quite much minimal i think... (we would have to check on this on how much savings can be attained <img src=icon_smile.gif border=0 align=middle>).. but what if you plan to add more forms on an existing program you develop which mean you should update the library again... (hmm... rather tedious ain't it?)
Power
 
Posts: 31
Joined: Sun Feb 04, 2001 8:51 am
Location: Philippines

Postby djeaux on Tue Feb 20, 2001 12:25 pm

St?ɬ©phane is correct -- by "trial and error" I just meant that without a function dependency list, it would be a horror story for me to try to edit out calls between CControls functions.

As a test, I created a form with a single button, no other functions, using CEditor. After compiling it was 14K. I'd guess that CControls put a 12-13K "overhead" on the program. Obviously in that rather simplistic case, the vast majority of CControls functions were dead weight.

For more complex applications, of course, eliminating unused CControls functions would have a diminishing impact...

--
In the Palm of some fool's hand.
- Bob Dylan
--
In the Palm of some fool's hand.
- Bob Dylan
djeaux
 
Posts: 37
Joined: Tue Feb 13, 2001 6:36 pm
Location: USA

Postby Vilmos on Tue Feb 20, 2001 1:33 pm

Ack, bigger than I remember, I had a fair sized source of my own by that time though. Hard to tell where the size is coming from at that point.

I may have to go back and start pulling those controls I never use, such as tables and popups.

Vilmos
Vilmos
 
Posts: 174
Joined: Tue Dec 05, 2000 6:13 pm
Location: Canada

Postby stephane on Fri Feb 23, 2001 4:28 am

It's done, finally. A cross-reference list is available at http://www.tibonet.com/palm/ccontrols/, select 'documentation' from the navigation menu and you'll find it.

I'd appreciate any feedback on the docs. Email them, if they're requests for clarifications (I'm still not sure how well I documented this..) but feel free to post here too, especially kudos! <img src=icon_smile.gif border=0 align=middle>

BTW, feel free to peruse the rest of the '/ccontrols' site on tiboNet.com. although there's a lot of dead or non-existant links, it'll give you an idea of what we want to do for the folks wanting an updated Ccontrols and Ceditor.. (it's all under construction, so please don't send any feedback just yet...I know it sucks <img src=icon_smile.gif border=0 align=middle> thanks)
Cheers,

St?ɬ©phane

(edited to fix the link to the site.. sorry about that)

Edited by - stephane on 02/23/2001 20:27:52
Stéphane
stephane
 
Posts: 71
Joined: Fri Jan 12, 2001 3:16 am
Location: Canada


Return to PocketC for Palm OS

Who is online

Users browsing this forum: No registered users and 1 guest

cron