Pumpkin, Inc.

Pumpkin User Forums

OSCOMBINE_EVENT_SERVICES makes code bigger

If you think you've found a bug or other mistake in your Salvo distribution, post it here.

OSCOMBINE_EVENT_SERVICES makes code bigger

Postby jtemples » Mon Aug 26, 2002 12:07 am

With the PICC18 compiler, enabling OSCOMBINE_EVENT_SERVICES increases the code size of my project by almost 900 bytes when using event flags and message queues. Shouldn't I get a reduction in code size?
jtemples
 
Posts: 45
Joined: Tue Jul 16, 2002 11:00 pm

Re: OSCOMBINE_EVENT_SERVICES makes code bigger

Postby aek » Mon Aug 26, 2002 1:35 am

Hello.

1) OSCOMBINE_EVENT_SERVICES is only for source-code builds. OSCOMBINE_EVENT_SERVICES is set to FALSE for all library builds.

2) We've found that your code ** may** shrink in size in a source-code build by setting OSCOMBINE_EVENT_SERVICES to TRUE if you have two event types (e.g. event flags and message queues). The more event types you have, the more it should shrink.

3) It's entirely possible that due to compiler differences, setting OSCOMBINE_EVENT_SERVICES to TRUE may or may not have a beneficial effect. So, my advice is to try it in a source-code build and review ROM utilization to see if it helps or not ...

Regards,

------------------

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 1 guest

cron