cancel
Showing results for 
Search instead for 
Did you mean: 

Convert the STR71x lib

per239955_st
Associate II
Posted on April 14, 2005 at 12:23

Convert the STR71x lib

13 REPLIES 13
per239955_st
Associate II
Posted on February 25, 2005 at 11:49

The gcc compiler (or ld actually) complains about the str71xDL.lib when linking.

So I guess that RealView uses some other lib format.

Is it possible to convert the libs, or do I have to recompile them?

Any general info regarding different lib formats are welcome. 🙂

/Beach

sjo
Associate II
Posted on February 26, 2005 at 07:55

You do not need to make many changes to rebuild these libs under gcc, we have done this in our free ide which will be available for download at www.anglia.com very soon. As soon as the webmaster uploads the files.

http://www.anglia.com/newsarchive/828.asp

Regards

sjo

whhofmeyr
Associate II
Posted on March 03, 2005 at 05:34

When trying to rebuild the libs under gnuarm's gcc I had

problems with the ''inline'' routines in the header files.

I tried all the options I could find to enable inline routines

but without success. The library builds OK, but then when

I include those headers in my application the linker reports

that multiple instances of those inline routines exist. This

means that the compiler has generated code for the inline

declaration in both the library and the application.

The options that I have tried include:

-Winline - but got no warnings

-O3 'cause inline is not supported below this optim' level

the 71x_conf.h file contains the line

#define inline __inline

and although that did not generate any error I tried

changing that to:

#define inline __inline__

but that did not help and even tried

#define inline __attribute__ ((always_inline)) __inline__

but that still did not help although no errors were generated.

help! :-?

I am waiting in anticipation for the anglia tools, but delivery

seems to be slow. I filled in the form more than a week ago

and e-mailed them a request a week ago but still nothing.

regards

whh

sjo
Associate II
Posted on March 03, 2005 at 05:53

I have changed all the inline declarations to static.

Sorry about the delay for the toolchain, I am waiting the webmaster to upload the files, they have been ready a while.

Regards

sjo

sjo
Associate II
Posted on March 07, 2005 at 05:55

Yes inline is supported, I originally changed the function declarations to static inline because of compile problems.

I looked into it further and all you have to do is either comment out #define inline __inline in 71xconf.h or change to #define inline __inline__ for gcc.

Just remembered why I changed declarations to static inline - when compiling as a lib you get link problems when linking with the library just produced.

Regards

sjo

[ This message was edited by: sjo on 07-03-2005 11:12 ]

whhofmeyr
Associate II
Posted on March 07, 2005 at 08:37

I eventually got the inline thing to compile and link OK,

but have been unable to test the results because my

JTAG device is playing up.

I used

#define inline __inline__ extern

which I got from the following URL

http://www.gnuxtools.com/gcc_docs/Inline.html

Has anyone had experience with the STR710 eveluation board

and the Amontec Chameleon (Raven emulator)?

Do they work together?

sjo
Associate II
Posted on March 07, 2005 at 08:38

It works fine with the wiggler if thats any help.

Regards

sjo

whhofmeyr
Associate II
Posted on March 09, 2005 at 04:24

Just FYI:

My problem was caused by a faulty JTAG adapter device.

I now have Anglia's toolchain (thanks sjo) working

with the Amontec (configured as a Raven) and the

ST710 Evaluation board. :D

whh

msartori
Associate II
Posted on March 30, 2005 at 14:28

How did you get all the asm files to compile under gnu? Is it another case of manually converting them to GNU As?

m@