By the way, if it is impossible for you to move your code towards the
beginning (eg. you may cause problems for other files),
you may consider writing function such as:

Long MUL(Long a, Long b)
{
  return a*b;
}

which is put closer to the beginning and your code can call this function
instead.

Please correct me if this is a bad idea.

Jacky

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Wang
Yan-FYA009
Sent: Saturday, February 17, 2001 1:23 PM
To: Palm Developer Forum
Subject: RE: Link Error Message



Thanks alot Danny! I move the module near to startup code and now is solved.


Thanks again!

Yan

> -----Original Message-----
> From: Danny Epstein [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 16, 2001 3:43 PM
> To: Palm Developer Forum
> Subject: Re: Link Error Message
>
>
> "Wang Yan-FYA009" <[EMAIL PROTECTED]> wrote in message
> news:39982@palm-dev-forum...
> > I got a link error message from CodeWarrior 7 when do a make:
> > Link Error   : InkCollectorForm.c: '_FindIntersection' 16-bit code
> reference
> > to '__lmul__' is out of range.
>
> This means that your FindIntersection routine is calling a
> routine called
> __lmul__, and it's more than 32K away. The routine called
> __lmul__ is part
> of the startup library. It's used for multiplying 32-bit numbers. The
> compiler generates calls to this routine when you use the *
> operator on
> longs, and when you index into arrays, depending on the size of the
> elements. In either case, you may be able to avoid the long
> math by changing
> your code. If not, you may be able to rearrange your functions so that
> FindIntersection is closer to the startup library (which is
> always the first
> thing in the code segment). Failing that, you can switch the
> code model from
> "small" to "smart". (I'm not a big fan of this solution.)
> Finally, you can
> use multiple code segments.
>
> For more information on 16-bit code references, code models,
> and multiple
> code segments, check the knowledge base and the archives of
> this mailing
> list.
> --
> Danny Epstein
> OS Engineer, Palm Inc.
>
>
> --
> For information on using the Palm Developer Forums, or to
> unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
>

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


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

Reply via email to