cancel
Showing results for 
Search instead for 
Did you mean: 

GNU compiler

ezanen9
Associate II
Posted on August 26, 2005 at 05:19

GNU compiler

22 REPLIES 22
ezanen9
Associate II
Posted on August 24, 2005 at 13:43

Hi, in the .LD file I can put any location to locate the libgcc.a. I now putted there:

SEARCH_DIR( ''C:\Program Files\Hitex\GnuToolPackageArm\arm-elf\lib'' )

SEARCH_DIR( ''C:\Program Files\Hitex\GnuToolPackageArm\lib\gcc-lib\arm-elf\3.3.2\thumb\interwork'' )

I think this works because if I remove the libraries from these folders I get compiler error: ''missing -lgcc'' etc.

But this does not solve my problem.

I have no option to put sentence in:

-L C:\Program Files\Hitex\GnuToolPackageArm\lib\gcc-lib\arm-elf\3.3.2\thumb\interwork

I also implemented your order of including the libraries. I also specified to the thumb/interwork paths. No effect:-(

All the (GNU) experts of Hitex are on vacation, but they promised me that I can speak to someone who knows 'something'' about it tomorrow. I really he knows the problem.

I really appreciate your work till now, thanks,

To be continued............

ezanen9
Associate II
Posted on August 26, 2005 at 04:56

It is finally working!!!!!!!! It was a compiler option I changed. The default option was: -c -gdwarf-2 -MD -mapcs-frame -O0 -mcpu=arm7tdmi -w -mthumb-interwork

I changed it into: -mcpu=arm7tdmi -c -gdwarf-2 -MD -Wall -O -mthumb-interwork -mapcs-frame(still don't know what it means)

This option I got from a project that was deliverd with Hitop5. I one by one changed all the linker and compiler options between the working and not working project.

Thanks again for all the help I become.

Without it I was still thinking that the error was in the compiler instead of wrong option in the IDE.

Regards,

Jim

ben2
Associate II
Posted on August 26, 2005 at 05:19

Glad to hear you have it working.

for an explanation on -mapcs-frame you could try reading this.

http://www.heyrick.co.uk/assembler/apcsintro.html