OK, I did find a slide in this PPT presentation by Neil Rhodes that helped a
bit: http://www.palmsource.com/about/events/expo/2002/pdf/406.pdf

Do I infer correctly from his example that when I do something like ...

#pragma segment SEGMENT1
void foo() {
    ...
}

...then every subsequent function will fall into SEGMENT1 until I insert
another #pragma segment?  And can I invoke #pragma segment SEGMENT1 again in
another part of the file to add some other functions to the same segment?
I.e:  SEGMENT1... SEGMENT2... SEGMENT1... SEGMENT3... etc.?

=========================
David Beers
Pikesoft Mobile Computing
www.pikesoft.com
\ -- Custom PDA Software
  \ -- Field Data Collection
    \ -- Sales Force Automation
      \ -- Wireless Database Solutions



> #pragma segment sounds promising...
> Any idea how it's used?
>
> =========================
> David Beers
> Pikesoft Mobile Computing
> www.pikesoft.com
> \ -- Custom PDA Software
>   \ -- Field Data Collection
>     \ -- Sales Force Automation
>       \ -- Wireless Database Solutions
>
>
> ----- Original Message ----- 
> From: "David Beers" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, December 11, 2003 4:11 PM
> Subject: Re: Segmenting by function with CW?
>
>
> > > it might wreak havoc when performing a merge with CVS. So I'm
wondering:
> > is
> > > it possible to do segmenting with CW on a function-by-function basis
> > similar
> > > to the way it's done in GCC?
> >
> > Not familiar with GCC, but presumably CodeWarrior's #pragma segment is
> what
> > u want.
> >
> >
>


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to