This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Function long calls in ARM


Sorry for the delay in my reply to the group, the MIS team in their infinite
wisdom decided that our mail server would convert all outgoing mail to
text/html.  having banged heads against walls....


I haven't got GCC 3.0.1 yet, when this problem first showed 3.0.1 had not
been released, due to office politics I am unable access pre-release CVS
files.  However I have been working around the problem by using a pointer to
the function to be called.  This works fine...

Please let me know if GCC 3.0.1 fixes the problem as I haven't had the time
to go back and check.   The pressure on my time is likely to be reduced in
the latter half of next month so I shall go back and try again then.

With reference to Mark's comments about moving the function into a separate
compilation unit; yes I tried that - still no avail.  However I will point
out that the problem was with code that was to run from RAM, there could
have been an issue with the fact that the code gets relocated at
initialisation....

Andy

> -----Original Message-----
> From: Rafael Rodríguez Velilla [mailto:rrv@tid.es]
> Sent: 29 August 2001 08:24
> To: ecos
> Subject: Re: [ECOS] Function long calls in ARM
> 
> 
> > It may just be that gcc 2.95.3 has some issues with the long_call
> > attribute used on functions called from within the same compilation
> > unit. I can't remember if Andy tried moving the function into a
> > separate compilation unit. YMMV.
> 
>   Some issues?...
>   When I try to use -mlong-calls (gcc 2.95.3) it simply says 
> "invalid option
> -mlong-calls"
> 
>   When I include it in the attribute inside the code it says "warning:
> 'long-call' attribute directive ignored"
> 
>   I will tell you all if with gcc 3.0.1 I can use the 
> mlong-calls option.
> 
> 
> 
> 
> 
> --
> Rafael Rodríguez Velilla        rrv@tid.es
> Telefónica I+D          http://www.tid.es
> Telf: +34 - 91 337 4270
> 
> 
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]