Pumpkin User Forums
  Service Bulletins
  SB-17: Salvo: Problems with MPLAB-C18 v2.2x

Post New Topic  
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone! next newest topic | next oldest topic
Author Topic:   SB-17: Salvo: Problems with MPLAB-C18 v2.2x
Salvo Tech Support
Moderator
posted May 16, 2003 13:50     Click Here to See the Profile for Salvo Tech Support     Edit/Delete Message   Reply w/Quote
Applies To

MPLAB-C18 v2.20.

Description of Problem

MPLAB-C18's new procedural abstraction optimization causes run-time problems in Salvo tasks.

Specifically, an task with two or more context switches (OS_Xyz()) will fail to execute properly. Run-time behavior is therefore unknown.

The root of the problem is the procedural abstraction optimization introduced in MPLAB-C18 v2.2, and the method whereby functions that are procedurally abstracted are called through an intermediate / extra call...return stack level.

Suggested Workaround

Disable procedural abstraction optimizations (which are enabled by default) by applying the -Opa- command-line switch to every source-code module that contains Salvo tasks.

Fixed In

This is an MPLAB-C18 issue for which there does not appear to be a workaround except for disabling procedural optimizations on a per-module basis. Whether a more elegant solution will be presented is unknown.

------------------
--------
Salvo Technical Support
Please request all tech support through the Forums.

IP: 63.203.232.106

All times are ET

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  
Hop to:

Contact Us | Pumpkin Home Page

2000-2008 Pumpkin, Inc. All Rights Reserved. Pumpkin and the Pumpkin logo, Salvo and the Salvo logo, The RTOS that runs in tiny places, CubeSat Kit and the CubeSat Kit logo are all trademarks of Pumpkin, Inc. All other trademarks are the properties of their respective owners.


Ultimate Bulletin Board 5.46a