On Tue, Feb 18, 2003 at 06:39:39AM -0500, Rick Reynolds wrote:
> It is complaining about my .text segment being too large.  How can I get
> around this?

Make it smaller.

> int foo(int bar) SEGMENT1;
> 
> ...
> 
> int SEGMENT1 foo(int bar) {
>    ...
> }
> 
> I read on the Falch site that this was basically a no-no and that best
> practices indicate to only place the segment definition on the prototype.

If the declaration is visible from the definition, then the second
annotation is redundant.  Redundancy of course leads to inconsistency
and thence to bugs, which is why I would recommend against it.

That visibility can be checked with -Wmissing-declarations (although
I personally find that flavour a little restrictive), which is not
implied by -Wall.

    John

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

Reply via email to