I hope I'm misreading something here.  I read the original post and 
this response and it seems that you are saying that all floating 
point operations must reside only in the first segment.

My main segment is almost 32k and I have a section that does nothing 
but floating point operations.  Am I just out of luck with 
multisegment code resources?  Have I misread something regarding this?

One other point about this.  Do all functions have to be declared in 
a particular segment?  I started out with about 8 source files (*.c). 
 My code was too large so I decided to try multisegment code 
resources.  So I left my main program (say myApp.c) alone and created 
a couple of other segments.  Then, I moved some functions from other 
*.c files to those new segments.  The main.c file was untouched.

myApp.c   (unchanged)  about 27k
source1.c  (segment1)
source2.c  (segment1)
source3.c  (segment2)
source4.c  (segment2)
source5.c  (segment2), etc

I assumed that anything that was not specified as a particular 
segment would go to a default code resource segment and the functions 
that were specified as belonging to a different segment would go to 
those (segment1, segment2, etc).

Is segment1 the first segment that is not the default segment or is 
segment 1, the default segment?  Do I have to declare every function, 
in a particular segment.  I'm probably not explaining this correctly.

I hope someone can help with this explanation.  I have checked the 
archives and can't find a clear explanation.

Also:

I am also still getting the "line 111 instruction" error even thought 
I have no duplicate declarations.

Anyone ever figure out what is causing this error?  I have looked at 
everything concerning duplicate declarations and can't find a 
problem.  My app has 8 code modules (*.c files with a cooresponding 
*.h file for each).  

Mike

> Chris DiPierro <[EMAIL PROTECTED]> wrote:
> > Is there something that's not allowing floating point ops
> > in anything but the main segment?
> 
> I thought there was:  the floating point calls are generated as "library
> calls", which take no notice of any declarations or attributes on those
> declarations.  However, we're lucky because the floating point functions
> are in the main code resource, so they just happen to work.  So that
> theory doesn't matter.
> 
> Hence I suspect the usual problem with callers not seeing the declaration,
> which is mentioned (clearly not loudly enough) in the manual.
> 
>     John  "the declaration is in a header file, not just above the
>            function like you've written it here, right?"
> 
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palm.com/devzone/mailinglists.html
> 


--
-----------------------------------------------------------------
Discussion Group:        http://www.halcyon.com/ipscone/wwwboard/

Protect your constitutional rights. Your favorite one may be next!
-----------------------------------------------------------------

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to